Global

Methods

# clean(data) → {any}

Parameters:
Name Type Description
data any
Returns:
Type
any
Example
clean(data)

# format(data, date,) → {any}

format(data, type)

Parameters:
Name Type Description
data any
date, string

string, array, object, boolean or number

Returns:
Type
any

# formatArray(data) → {array}

Parameters:
Name Type Description
data any
Author:
  • zen-out
Returns:
Type
array
Example
formatArray(data)

# formatBoolean(data) → {boolean}

Parameters:
Name Type Description
data any
Author:
  • zen-out
Returns:
Type
boolean
Example
formatBoolean(data)

# formatDate(data) → {date}

Parameters:
Name Type Description
data any
Author:
  • zen-out
Returns:
Type
date
Example
formatDate(data)

# formatNumber(data, type) → {number}

Parameters:
Name Type Description
data any
type any
Author:
  • zen-out
Returns:
Type
number
Example
formatNumber(data)

# formatObject(data) → {object}

Parameters:
Name Type Description
data any
Returns:
Type
object
Example
formatObject(data)

# formatString(data) → {string}

formatString(data)

Parameters:
Name Type Description
data any
Returns:
Type
string

# getType(data) → {string}

Parameters:
Name Type Description
data any
Returns:

data, number, array, string object, boolean undefined

Type
string
Example
getType(data)

# trimArr(arr) → {array}

Parameters:
Name Type Description
arr any
Author:
  • zen-out
Returns:
Type
array
Example
trimArr(arr)

# trimObj(obj) → {any}

Parameters:
Name Type Description
obj any
Author:
  • zen-out
Returns:
Type
any
Example
trimObj(obj)