MCPcopy
hub / github.com/lodash/lodash / updateWrapDetails

Function updateWrapDetails

lodash.js:6883–6891  ·  view source on GitHub ↗

* Updates wrapper `details` based on `bitmask` flags. * * @private * @returns {Array} details The details to modify. * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @returns {Array} Returns `details`.

(details, bitmask)

Source from the content-addressed store, hash-verified

6881 * @returns {Array} Returns `details`.
6882 */
6883 function updateWrapDetails(details, bitmask) {
6884 arrayEach(wrapFlags, function(pair) {
6885 var value = '_.' + pair[0];
6886 if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {
6887 details.push(value);
6888 }
6889 });
6890 return details.sort();
6891 }
6892
6893 /**
6894 * Creates a clone of `wrapper`.

Callers 1

setWrapToStringFunction · 0.85

Calls 2

arrayEachFunction · 0.85
arrayIncludesFunction · 0.85

Tested by

no test coverage detected