parent
27e9c4d5dc
commit
a92d14e4ed
@ -1,4 +1,7 @@
|
||||
export const array = Array.isArray;
|
||||
export function primitive(s: any): s is string | number {
|
||||
return typeof s === "string" || typeof s === "number";
|
||||
return typeof s === "string" ||
|
||||
typeof s === "number" ||
|
||||
s instanceof String ||
|
||||
s instanceof Number;
|
||||
}
|
||||
|
Loading…
Reference in New Issue