isBasicValue

源码

https://github.com/ddzy/ts-utility-plugins/tree/master/src/ddzy/utility/others/isBasicValue

说明

判断是否基本类型的值

用法

index.ts
const o1 = [
{},
[],
function() {},
];
o1.forEach((v) => utilityOthers.isBasicValue(v)); // false
const o2 = [
0,
'',
false,
undefined,
null,
Symbol,
]
o2.forEach((v) => utilityOthers.isBasicValue(v)); // true