Archived
1
0
Fork 0
This repository has been archived on 2024-07-25. You can view files and clone it, but cannot push or open issues or pull requests.
paren/lib/lang.mjs

13 lines
249 B
JavaScript
Raw Normal View History

2022-03-14 10:32:45 +03:00
export function isNil(v) {
return v == null;
}
export function isBool(v) {
return typeof v === "boolean";
}
2022-03-20 23:22:43 +03:00
export function isStr(v) {
return typeof v === "string";
}
export function intoArr(v) {
return Array.isArray(v) ? v : [v];
}