object-designer
v2.0.0
Published
Simple javascript package that allows you to design your output object as you want
Downloads
16
Maintainers
Readme
Object Designer (Beta)
This package started in 2023/7/7 and the author is alieldeba
Use Casses
- Changing object formate
- Limiting object fields
Examples
var objectDesigner = require("object-designer");
var array1 = ["name", "age"];
var obj1 = { name: "John Doe", age: 30, email: "[email protected]" };
console.log(objectDesigner(array1, obj1)); // { name: "John Doe", age: 30 }
var array2 = ["age", "name"];
var obj2 = { name: "John Doe", age: 30, email: "[email protected]" };
console.log(objectDesigner(array2, obj2)); // { age: 30, name: "John Doe" }