1.0.7 • Published 9 years ago

move-property-up-a-level v1.0.7

Weekly downloads
1
License
ISC
Repository
github
Last release
9 years ago

Build Status

#movePropertyUpALevel A simple function that takes an object and a property name and moves the property up a level in the object

#Useage

	var movePropertyUpALevel = require('move-property-up-a-level');
	
	var fakeObj = {
		poodle: {
			first: {
				hey: 'you'
			},
			second: 'meAgain'
		}
	};

	movePropertyUpALevel(fakeObj, 'poodle');

	console.log(fakeObj.first.hey);
	//'you'
	console.log(fakeObj.poodle);
	//undefined
1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago