forked from kamicane/prime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharray.js
More file actions
32 lines (28 loc) · 759 Bytes
/
array.js
File metadata and controls
32 lines (28 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
array
*/"use strict"
var array = require("./_shell").array
var proto = Array.prototype
array.implement({
concat: proto.concat,
join: proto.join,
pop: proto.pop,
push: proto.push,
reverse: proto.reverse,
shift: proto.shift,
slice: proto.slice,
sort: proto.sort,
splice: proto.splice,
toString: proto.toString,
unshift: proto.unshift
})
array.extend({
every: require("./array/every"),
filter: require("./array/filter"),
forEach: require("./array/forEach"),
indexOf: require("./array/indexOf"),
map: require("./array/map"),
remove: require("./array/remove"),
some: require("./array/some")
})
module.exports = array