Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use allowed instead of whitelisted; Use disallowed instead of blacklisted; #4287

Merged
merged 1 commit into from
Feb 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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));