UNPKG

@jauntywunderkind/tc39-temporal

Version:
19 lines (18 loc) 409 B
export function assign(target, source) { for (var name in source) { if (Object.prototype.hasOwnProperty.call(source, name)) target[name] = source[name]; } return target; } export function unique(arr) { const obj = Object.create(null); for (var i = 0; i < arr.length; i++) { var v = arr[i]; obj[v] = v; } var res = []; for (var p in obj) { res.push(obj[p]); } return res; }