parent
f49c793eb4
commit
1674c0cac5
@ -1,4 +1,4 @@
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue