Utilities
String
typeOf ⇒ A better way of checking JavaScript types.
Param | Type |
---|---|
obj | Any |
Boolean
isEmpty ⇒ Checks if a value is empty.
Param | Type |
---|---|
object | Any |
Any
deepPath ⇒ Access deep properties inside a JSON data using path
Param | Type |
---|---|
path | Array |
object | JSON |
Array
mapOnObject ⇒ Map on an object data, iteratee is the function invoked per iteration.
Param | Type |
---|---|
object | Object |
iteratee | function |
String
pluralize ⇒ Pluralizes a word based on the value of count.
Param | Type |
---|---|
count | Number |
text | String |
suffix | String |
String
toProperCase ⇒ Changes a given string to sentence case.
Param | Type |
---|---|
str | String |
Any
safeInvoke ⇒ Safely invoke the function with the given arguments, if it is indeed a function, and return its value.
Param | Type |
---|---|
func | function |
args | Any |
Boolean
isValidEmail ⇒ Checks if an email is valid
Param | Type |
---|---|
String |
Build
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.
License
MIT © Darpan Kakadia