utils.array.remove

remove(arr: Array<number | string | Object>, obj: object) → {Array<number | string | Object>}

Remove the specified object from the given Array

Parameters:
Name Type Description
arr Array<number | string | Object>

array from which to remove an object

obj object

to be removed

Returns:
Type Description
Array<number | string | Object>

the modified Array let arr = [ "foo", "bar", "baz" ]; // remove "foo" from the array me.utils.array.remove(arr, "foo");

Powered by webdoc!