A better way of checking JavaScript types.
Param | Type |
---|---|
obj | Any |
Checks if a value is empty.
Param | Type |
---|---|
object | Any |
Access deep properties inside a JSON data using path
Param | Type |
---|---|
path | Array |
object | JSON |
Map on an object data, iteratee is the function invoked per iteration.
Param | Type |
---|---|
object | Object |
iteratee | function |
Pluralizes a word based on the value of count.
Param | Type |
---|---|
count | Number |
text | String |
suffix | String |
Changes a given string to sentence case.
Param | Type |
---|---|
str | String |
Safely invoke the function with the given arguments, if it is indeed a function, and return its value.
Param | Type |
---|---|
func | function |
args | Any |
Checks if an email is valid
Param | Type |
---|---|
String |
yarn build
This will transpile and build files for cjs
and es
environments.
The dist
folder will have bundled version of the library
The lib
folder will have transpiled version of the library targeting es
module system.
MIT © Darpan Kakadia