UNPKG

array-includes-polyfill

Version:

Exposing a richer set of Array features for JavaScript

18 lines (16 loc) 235 B
class Copy{ copy(arr){ if(arr){ this.map((data)=>{ arr.push(data); }); }else{ var x = []; this.map((data)=>{ x.push(data); }); return x; } } } module.exports = Copy;