-
Notifications
You must be signed in to change notification settings - Fork 5
clear$
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!)