object-cleaner
v0.1.3
Published
A little function to clean dirty arrays in Objects.
Downloads
6
Readme
object-cleaner
A little function to clean dirty Objects, find any array with lenght one and and put his content without array.
Getting Started
Install the module with: npm install object-cleaner
var objCleaner = new require('object-cleaner');
objCleaner(Object_to_clean); // Object_cleaned
Examples
var test = [{
property1: '',
property2: ''
}];
var result = objCleaner(test);
var result = {
property1: '',
property2: ''
};
License
Copyright (c) 2014 Daniel Biedma Ramos Licensed under the MIT license.