0.1.2 • Published 6 years ago

utililty-kit v0.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Utilities

typeOf ⇒ String

A better way of checking JavaScript types.

ParamType
objAny

isEmpty ⇒ Boolean

Checks if a value is empty.

ParamType
objectAny

deepPath ⇒ Any

Access deep properties inside a JSON data using path

ParamType
pathArray
objectJSON

mapOnObject ⇒ Array

Map on an object data, iteratee is the function invoked per iteration.

ParamType
objectObject
iterateefunction

pluralize ⇒ String

Pluralizes a word based on the value of count.

ParamType
countNumber
textString
suffixString

toProperCase ⇒ String

Changes a given string to sentence case.

ParamType
strString

safeInvoke ⇒ Any

Safely invoke the function with the given arguments, if it is indeed a function, and return its value.

ParamType
funcfunction
argsAny

isValidEmail ⇒ Boolean

Checks if an email is valid

ParamType
emailString

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