Removes the last element
A new array with the last element removed
<pre> const original = ["a", "b"]; const result = ["a"]; expect(remove(original, 1)).to.eql(result); </pre> Copy
<pre> const original = ["a", "b"]; const result = ["a"]; expect(remove(original, 1)).to.eql(result); </pre>
Generated using TypeDoc
Removes the last element