1.0.7 • Published 10 years ago

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

Weekly downloads
1
License
ISC
Repository
github
Last release
10 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

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago