Socket
Socket
Sign inDemoInstall

like-ar

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

like-ar - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

10

like-ar.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc