Skip to content

Commit

Permalink
Merge pull request #4287 from xwxtwd/master
Browse files Browse the repository at this point in the history
Use allowed instead of whitelisted; Use disallowed instead of blacklisted;
  • Loading branch information
jgonggrijp authored Feb 25, 2024
2 parents bfc3c18 + 974d054 commit c73855b
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 allowed 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 disallowed 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 c73855b

Please sign in to comment.