Lines Matching defs:customizer

2559      * or `customizer` functions.
2572 * or `customizer` functions.
2656 * @param {Function} [customizer] The function to customize cloning.
2662 function baseClone(value, bitmask, customizer, key, object, stack) {
2668 if (customizer) {
2669 result = object ? customizer(value, key, object, stack) : customizer(value);
2714 result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
2718 result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
2733 assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
3305 * @param {Function} [customizer] The function to customize comparisons.
3309 function baseIsEqual(value, other, bitmask, customizer, stack) {
3316 return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
3328 * @param {Function} customizer The function to customize comparisons.
3333 function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
3356 ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
3357 : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
3368 return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
3375 return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
3396 * @param {Function} [customizer] The function to customize comparisons.
3399 function baseIsMatch(object, source, matchData, customizer) {
3402 noCustomizer = !customizer;
3429 if (customizer) {
3430 var result = customizer(objValue, srcValue, key, object, source, stack);
3433 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
3634 * @param {Function} [customizer] The function to customize merged values.
3638 function baseMerge(object, source, srcIndex, customizer, stack) {
3645 baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
3648 var newValue = customizer
3649 ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
3671 * @param {Function} [customizer] The function to customize assigned values.
3675 function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
3684 var newValue = customizer
3685 ? customizer(objValue, srcValue, (key + ''), object, source, stack)
3731 mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
4017 * @param {Function} [customizer] The function to customize path creation.
4020 function baseSet(object, path, value, customizer) {
4041 newValue = customizer ? customizer(objValue, key, nested) : undefined;
4384 * @param {Function} [customizer] The function to customize path creation.
4387 function baseUpdate(object, path, updater, customizer) {
4388 return baseSet(object, path, updater(baseGet(object, path)), customizer);
4819 * @param {Function} [customizer] The function to customize copied values.
4822 function copyObject(source, props, object, customizer) {
4832 var newValue = customizer
4833 ? customizer(object[key], source[key], key, object, source)
4900 customizer = length > 1 ? sources[length - 1] : undefined,
4903 customizer = (assigner.length > 3 && typeof customizer == 'function')
4904 ? (length--, customizer)
4908 customizer = length < 3 ? undefined : customizer;
4915 assigner(object, source, index, customizer);
5670 * @param {Function} customizer The function to customize comparisons.
5675 function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
5701 if (customizer) {
5703 ? customizer(othValue, arrValue, index, other, array, stack)
5704 : customizer(arrValue, othValue, index, array, other, stack);
5717 (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
5726 equalFunc(arrValue, othValue, bitmask, customizer, stack)
5749 * @param {Function} customizer The function to customize comparisons.
5754 function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
5807 var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
5827 * @param {Function} customizer The function to customize comparisons.
5832 function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
5865 if (customizer) {
5867 ? customizer(othValue, objValue, key, other, object, stack)
5868 : customizer(objValue, othValue, key, object, other, stack);
5872 ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
11102 * This method is like `_.clone` except that it accepts `customizer` which
11103 * is invoked to produce the cloned value. If `customizer` returns `undefined`,
11104 * cloning is handled by the method instead. The `customizer` is invoked with
11112 * @param {Function} [customizer] The function to customize cloning.
11117 * function customizer(value) {
11123 * var el = _.cloneWith(document.body, customizer);
11132 function cloneWith(value, customizer) {
11133 customizer = typeof customizer == 'function' ? customizer : undefined;
11134 return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
11167 * @param {Function} [customizer] The function to customize cloning.
11172 * function customizer(value) {
11178 * var el = _.cloneDeepWith(document.body, customizer);
11187 function cloneDeepWith(value, customizer) {
11188 customizer = typeof customizer == 'function' ? customizer : undefined;
11189 return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
11604 * This method is like `_.isEqual` except that it accepts `customizer` which
11605 * is invoked to compare values. If `customizer` returns `undefined`, comparisons
11606 * are handled by the method instead. The `customizer` is invoked with up to
11615 * @param {Function} [customizer] The function to customize comparisons.
11623 * function customizer(objValue, othValue) {
11632 * _.isEqualWith(array, other, customizer);
11635 function isEqualWith(value, other, customizer) {
11636 customizer = typeof customizer == 'function' ? customizer : undefined;
11637 var result = customizer ? customizer(value, other) : undefined;
11638 return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;
11896 * This method is like `_.isMatch` except that it accepts `customizer` which
11897 * is invoked to compare values. If `customizer` returns `undefined`, comparisons
11898 * are handled by the method instead. The `customizer` is invoked with five
11907 * @param {Function} [customizer] The function to customize comparisons.
11915 * function customizer(objValue, srcValue) {
11924 * _.isMatchWith(object, source, customizer);
11927 function isMatchWith(object, source, customizer) {
11928 customizer = typeof customizer == 'function' ? customizer : undefined;
11929 return baseIsMatch(object, source, getMatchData(source), customizer);
12711 * This method is like `_.assignIn` except that it accepts `customizer`
12712 * which is invoked to produce the assigned values. If `customizer` returns
12713 * `undefined`, assignment is handled by the method instead. The `customizer`
12725 * @param {Function} [customizer] The function to customize assigned values.
12730 * function customizer(objValue, srcValue) {
12734 * var defaults = _.partialRight(_.assignInWith, customizer);
12739 var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
12740 copyObject(source, keysIn(source), object, customizer);
12744 * This method is like `_.assign` except that it accepts `customizer`
12745 * which is invoked to produce the assigned values. If `customizer` returns
12746 * `undefined`, assignment is handled by the method instead. The `customizer`
12757 * @param {Function} [customizer] The function to customize assigned values.
12762 * function customizer(objValue, srcValue) {
12766 * var defaults = _.partialRight(_.assignWith, customizer);
12771 var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
12772 copyObject(source, keys(source), object, customizer);
13510 * This method is like `_.merge` except that it accepts `customizer` which
13512 * properties. If `customizer` returns `undefined`, merging is handled by the
13513 * method instead. The `customizer` is invoked with six arguments:
13524 * @param {Function} customizer The function to customize assigned values.
13528 * function customizer(objValue, srcValue) {
13537 * _.mergeWith(object, other, customizer);
13540 var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
13541 baseMerge(object, source, srcIndex, customizer);
13746 * This method is like `_.set` except that it accepts `customizer` which is
13747 * invoked to produce the objects of `path`. If `customizer` returns `undefined`
13748 * path creation is handled by the method instead. The `customizer` is invoked
13760 * @param {Function} [customizer] The function to customize assigned values.
13769 function setWith(object, path, value, customizer) {
13770 customizer = typeof customizer == 'function' ? customizer : undefined;
13771 return object == null ? object : baseSet(object, path, value, customizer);
13942 * This method is like `_.update` except that it accepts `customizer` which is
13943 * invoked to produce the objects of `path`. If `customizer` returns `undefined`
13944 * path creation is handled by the method instead. The `customizer` is invoked
13956 * @param {Function} [customizer] The function to customize assigned values.
13965 function updateWith(object, path, updater, customizer) {
13966 customizer = typeof customizer == 'function' ? customizer : undefined;
13967 return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);