Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
IonicaBizau committed Dec 18, 2020
1 parent 34b7f74 commit 7130384
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/index.js
Expand Up @@ -5,13 +5,13 @@ const iterateObject = require("iterate-object")
;


/**
/*!
* Returns true, if given key is included in the blacklisted
* keys.
* @param key key for check, string.
*/
function isPrototypePolluted(key) {
return ['__proto__', 'prototype', 'constructor'].includes(key);
return module.exports.blacklistedKeys.includes(key);
}

/**
Expand Down Expand Up @@ -54,3 +54,5 @@ module.exports = function unflattenObject(flatten, separator) {

return result;
};

module.exports.blacklistedKeys = ["__proto__", "prototype", "constructor"];
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -53,4 +53,4 @@
"bloggify.json",
"bloggify/"
]
}
}

0 comments on commit 7130384

Please sign in to comment.