@svizzle/utils/object-number

Methods

(static) getObjSize(object) → {number}

Source:
Since:
  • 0.1.0

Return the size of the provided object

Example
> getObjSize({a: 1, b: 2})
2
Parameters:
Name Type Description
object object
Returns:

size

Type
number

(static) valuesMax(object) → {number}

Source:
Since:
  • 0.1.0

Return the max of the provided object values

Example
> valuesMax({a: -3, b: 2, c: 1})
2
Parameters:
Name Type Description
object object
Returns:

max

Type
number

(static) valuesMin(object) → {number}

Source:
Since:
  • 0.1.0

Return the min of the provided object values

Example
> valuesMin({a: -3, b: 2, c: 1})
-3
Parameters:
Name Type Description
object object
Returns:

max

Type
number