Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.3 to 1.0.4

12

index.js
const _ = require("lodash");
module.exports = function (arrObj, propertiesToDelete) {
function User(properties, obj){
_.forEach(properties, function (property, j) {
this[property] = obj[property];
});
}
module.exports = function (arrObj, properties) {
_.forEach(arrObj, function (obj, i) {
if (obj != null || obj != undefined) {
_.forEach(propertiesToDelete, function (property, j) {
delete obj[property];
});
obj = new User(properties, obj);
}
});
}
{
"name": "filter-array-of-objects",
"version": "1.0.3",
"version": "1.0.4",
"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