Policies & Guidelines

WITHOUT_ITEM

Remove item from array

Description

Returns an array which doesn't contain the given item.

Function signature

WITHOUT_ITEM(array: Array, item: ) => Array

Parameter

Description

Array

Array to remove item from

Item

Item to remove

Examples

Formula

Return value

WITHOUT_ITEM([100, 3, 20], 3)

[100,20]

WITHOUT_ITEM([[1, 2], [3, 4], [1, 2]], [1, 2])

[[3,4],[1,2]]

WITHOUT_ITEM([1, "2", 3, { a: 4 }], 3)

[1,"2",{"a":4}]