Created
October 10, 2016 02:28
-
-
Save jonathanmarvens/9c4e947c74f8c4ad606a3036bede8644 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function (properties) { | |
var object = Object.create(null) | |
if ((typeof properties !== 'undefined') && | |
(properties !== null) && | |
(typeof properties === 'object')) { | |
for (var property in properties) { | |
if (properties.hasOwnProperty(property)) { | |
object[property] = properties[property] | |
} | |
} | |
} | |
return object | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment