1
0
Fork 0
forked from 0x2620/oxjs

Ox.toArray -> Ox.slice

This commit is contained in:
rolux 2013-12-01 14:57:52 +01:00
commit 031aa4367b
11 changed files with 20 additions and 20 deletions

View file

@ -296,7 +296,7 @@ My.range <f> Returns a python-style range
*/
My.range = function() {
var a = [];
Ox.loop.apply(null, Ox.toArray(arguments).concat(function(i) {
Ox.loop.apply(null, Ox.slice(arguments).concat(function(i) {
a.push(i);
}));
return a;
@ -358,7 +358,7 @@ My.localStorage = function(ns) {
}
storage.delete = function() {
var keys = arguments.length == 0 ? Object.keys(storage())
: Ox.toArray(arguments)
: Ox.slice(arguments)
keys.forEach(function(key) {
delete localStorage[ns + '.' + key];
});