Skip to content

API Reference

Mohith G edited this page Apr 25, 2017 · 1 revision

Functions

compactObject()object

compactObject - deletes the empty valued properties from the object

recursiveOmit()object

Removes the empty valued properties from the object recursively

deepExtend(target, source)object

Similar to _.extend but does a deep extend

diffobject(object1, object2)object

Compares Object1 with Object2 and returns the different key-value pairs

convertCamelCaseToReadable(s1)
  • If you combine more than two strings without any spaces between in it. It will make it readable by providing space between each and every string.

compactObject() ⇒ object

compactObject - deletes the empty valued properties from the object

Kind: global function
Returns: object - compactobj - object free from empty valued properties.

Type Description
Object The object

recursiveOmit() ⇒ object

Removes the empty valued properties from the object recursively

Kind: global function
Returns: object - compactobj - object free from empty valued properties deep.

Type Description
Object The object.

deepExtend(target, source) ⇒ object

Similar to _.extend but does a deep extend

Kind: global function
Returns: object - target - Returns the target object which has the source object properties after merging it.

Param Type Description
target object The target object to which source object properties to be merged.
source object The source object properties which need's to be merged to target.

diffobject(object1, object2) ⇒ object

Compares Object1 with Object2 and returns the different key-value pairs

Kind: global function
Returns: object - diffobject - Returns the different key-value pairs in object1 and object2.

Param Type Description
object1 string Enter object1 to compare with object2
object2 string Enter object2 to compare with object1

convertCamelCaseToReadable(s1) ⇒

  • If you combine more than two strings without any spaces between in it. It will make it readable by providing space between each and every string.

Kind: global function
Returns: s1 - Returns the each and every string by separating with spaces in between it.

Param Type Description
s1 string Enter camel case string to convert to readable.