array-copywithin
1.1.0 • Public • Published array-copyWithin ![Build Status](https://travis-ci.org/1000ch/array-copyWithin.svg?branch=master)
Polyfill for Array.prototype.copyWithin.
![testling badge](https://ci.testling.com/1000ch/array-copyWithin.png)
Usage
Functionally:
var copyWithin = require('array-copywithin');
var array = copyWithin([1, 2, 3, 4, 5], 0, 3);
console.log(array);
From Array object:
require('array-copywithin/shim');
var array = [1, 2, 3, 4, 5].copyWithin(0, 3);
console.log(array);
License
MIT © Shogo Sensui
/array-copywithin/
//
Package Sidebar
Install
Weekly Downloads