object-cleaner

0.1.3 • Public • Published

object-cleaner Dependency Status

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.

Package Sidebar

Install

npm i object-cleaner

Weekly Downloads

0

Version

0.1.3

License

none

Last publish

Collaborators

  • danibram