Comparing version 0.1.0 to 0.2.0
@@ -53,8 +53,8 @@ "use strict"; | ||
ObjectWithArrayMethodsOptimized.prototype.values = function values(){ | ||
ObjectWithArrayMethodsOptimized.prototype.array = function array(){ | ||
var oThis=this._object; | ||
if(typeof Object.values === 'function'){ | ||
return Object.values(arr); | ||
return Object.values(oThis); | ||
} | ||
var arr = []; | ||
var oThis=this._object; | ||
for(var attr in oThis){ if(oThis.hasOwnProperty(attr)){ | ||
@@ -67,3 +67,3 @@ arr.push(oThis[attr]); | ||
ObjectWithArrayMethodsOptimized.prototype.join = function join(separator){ | ||
return this.values().join(separator); | ||
return this.array().join(separator); | ||
}; | ||
@@ -86,3 +86,3 @@ | ||
{name:'join' , useOptimized: true }, | ||
{name:'values' , useOptimized: true }, | ||
{name:'array' , useOptimized: true }, | ||
{name:'keys' , useOptimized: true }, | ||
@@ -89,0 +89,0 @@ ].forEach(function(method){ |
{ | ||
"name": "like-ar", | ||
"description": "Using objects like arrays with map, filter, forEach and others coming soon.", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"author": "Codenautas <codenautas@googlegroups.com>", | ||
@@ -6,0 +6,0 @@ "repository": "codenautas/like-ar", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8271