0.0.2 • Published 8 years ago
es-adapter v0.0.2
#ik-number-formatter
Functions that imitates some ES7 functions so we can use then in IE.
##objectToArray
Imitates Object.values(object).
Convert a key: value object into an array. First of all we must import the function.
import objectToArray from "es-adapter";The function has one parameter:
object: the object we want to convert.
var convertedArray = objectToArray(object);
##arrayIncludes
Imitates array.includes(value). Returns a boolean.
Checks if an array has a value. First of all we must import the function.
import arrayIncludes from "es-adapter";The function has two parameters:
- array: the array where we have to check if the value exists
- value: the value we want to check if exist.
var arrayIncludesValue = arrayIncludes(array, value);