Skip to content

Instantly share code, notes, and snippets.

@jonathanmarvens
Created October 10, 2016 02:28
Show Gist options
  • Save jonathanmarvens/9c4e947c74f8c4ad606a3036bede8644 to your computer and use it in GitHub Desktop.
Save jonathanmarvens/9c4e947c74f8c4ad606a3036bede8644 to your computer and use it in GitHub Desktop.
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