object cleaner v0.1.3

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


var test = [{
    property1: '',
    property2: ''
var result = objCleaner(test);
var result = {
    property1: '',
    property2: ''


Copyright © 2014 Daniel Biedma Ramos Licensed under the MIT license.

comments powered by Disqus