Add offset snippet
This commit is contained in:
2
test/offset/offset.js
Normal file
2
test/offset/offset.js
Normal file
@ -0,0 +1,2 @@
|
||||
const offset = (arr, offset) => [...arr.slice(offset), ...arr.slice(0, offset)];
|
||||
module.exports = offset;
|
||||
Reference in New Issue
Block a user