Socket
Socket
Sign inDemoInstall

filter-array-of-objects

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filter-array-of-objects - npm Package Compare versions

Comparing version 1.0.9 to 1.1.0

16

index.js

@@ -21,9 +21,13 @@ const _ = require("lodash");

module.exports = function (arrObj, properties) {
_.forEach(arrObj, function (obj, i) {
if (obj != null || obj != undefined) {
arrObj[i] = new Obj(properties, obj);
}
});
if (Array.isArray(arrObj)) {
_.forEach(arrObj, function (obj, i) {
if (obj != null || obj != undefined) {
arrObj[i] = new Obj(properties, obj);
}
});
arrObj.sort(compare);
arrObj.sort(compare);
} else if (typeof yourVariable === 'object' && yourVariable !== null) {
arrObj = new Obj(properties, arrObj);
}
}
{
"name": "filter-array-of-objects",
"version": "1.0.9",
"version": "1.1.0",
"description": "Filter propertie of array of objects",

@@ -5,0 +5,0 @@ "main": "index.js",

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