-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Array.prototype.quc = function() {
var res = [];
var jso = {};
for (var i = 0; i < this.length; i++) {
if (!jso[JSON.stringify(this[i])]) {
res.push(this[i]);
jso[JSON.stringify(this[i])] = 1;
};
}
return res;
}
const song = [
{1:"羽根"},
{1:"羽根"},
{2:"晴天"},
]
song.quc()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels