Code:-
[1,2,3].isEmpty();
Example:-
const array = [];
console.log(array.isEmpty());
Output :- True
Code:-
[1,2,3,3].unique()
Example:-
let data = ["a", "f", "e", "w", "r", "e", "o", "j", "j","w"];
console.log(data.unique());
Output :- ["a", "f", "e", "w", "r", "o", "j"]
Code:-
[8, null, undefined,0].clean()
Example:-
let data = [8, null, undefined,0, 6];
console.log(data.clean());
Output :- [8,6]
Code:-
[8, null, undefined,0].copyArray()
Example:-
let data = [8, null, undefined,0];
let newArray = data.copyArray();
data.push(55)
console.log(newArray);
Output :- [8, null, undefined,0]