Utils for javascript
pnpm add utility-is
import u from 'utility-is'
u('❤️');
// => string
u.isString('❤️')
// => true
u.isNonNullable(null)
// => false
return the type of value
Example:
'string'
'number'
'boolean'
'array'
'object'
'symbol'
'map'
'set'
like:
return false
if there is no await
statement in the function
And More...