like-ar
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -77,2 +77,10 @@ "use strict"; | ||
ObjectWithArrayMethodsOptimized.prototype.plain = function plain(){ | ||
var o = {}; | ||
likeAr(this).forEach(function(value, key){ | ||
o[key]=value; | ||
}); | ||
return o; | ||
} | ||
function Argument3Adapt(__,___,x){ return x; } | ||
@@ -87,2 +95,3 @@ | ||
{name:'keys' , useOptimized: true }, | ||
{name:'plain' , useOptimized: true }, | ||
].forEach(function(method){ | ||
@@ -89,0 +98,0 @@ ObjectWithArrayMethodsNonOptimized.prototype[method.name] = method.useOptimized ? |
{ | ||
"name": "like-ar", | ||
"description": "Using objects like arrays with map, filter, forEach and others coming soon.", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"author": "Codenautas <codenautas@googlegroups.com>", | ||
@@ -6,0 +6,0 @@ "repository": "codenautas/like-ar", |
@@ -57,2 +57,3 @@ # like-ar | ||
`keys()` | array of keys | ||
`plain()` | plain array | ||
@@ -59,0 +60,0 @@ # Usage |
9614
122
77