Skip to content
Subhajit Sahu edited this page May 3, 2023 · 1 revision

Remove all elements from an array!


function clear$(x)
// x: an array (updated!)

const xarray = require('extra-array');

// Example for clear$
var x = [1, 2, 3, 4, 5];
xarray.clear$(x);
// → []  (x cleared!)


References

Clone this wiki locally