type-util
A utility package which provides the basic functions based on arrays, strings, and objetcs
Table of Contents
Installation
Usage
Issues or Suggestions
License
Installation
Install stable version from NPM:
npm install type-util --save
Usage
isEmpty(data)
returns if an array, string , or object is empty
var util = ;ifutil console; else console; ifutil console; else console; ifutil console; else console;
isString(data)
returns if data is a string
var util = ;ifutil console; else console; ifutil console; else console; ifutil console; else console;
isObject(data)
returns if data is an object
var util = ;ifutil console; else console; ifutil console; else console; ifutil console; else console;
isArray(data)
returns if data is an array
var util = ;ifutil console; else console; ifutil console; else console; ifutil console; else console;
isFunction(data)
returns if data is a function
var util = ;ifutil console; else console; ifutil console; else console; ifutil console; else console;
lengthOf(data)
returns if length of data whether it's a string, an array, or an object
var util = ;console;console;console;
find(data, key)
returns if a string, property, or key is found in data.
var util = ;console;console;
maxKey(data)
returns maximum element existing.
var util = ;console
Issues or Suggestions
Everything is welcome, if there are any issues, or suggestions please raise them.