Skip to content

Commit

Permalink
Use allowlisted instead of whitelisted; Use blocklisted instead of bl…
Browse files Browse the repository at this point in the history
…acklisted;
  • Loading branch information
xwxtwd committed Feb 23, 2024
1 parent bfc3c18 commit 73bab54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/vendor/underscore.js
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@
}
};

// Return a copy of the object only containing the whitelisted properties.
// Return a copy of the object only containing the allowlisted properties.
_.pick = function(object, oiteratee, context) {
var result = {}, obj = object, iteratee, keys;
if (obj == null) return result;
Expand All @@ -1039,7 +1039,7 @@
return result;
};

// Return a copy of the object without the blacklisted properties.
// Return a copy of the object without the blocklisted properties.
_.omit = function(obj, iteratee, context) {
if (_.isFunction(iteratee)) {
iteratee = _.negate(iteratee);
Expand Down Expand Up @@ -1545,4 +1545,4 @@
return _;
});
}
}.call(this));
}.call(this));

0 comments on commit 73bab54

Please sign in to comment.