_.forEach(unsetParam, function(path) { if (_.get(data, path) === undefined) { done(new Error("The path " + path + "doesn't exist!")); faultedFlag = true; return false; } _unset(data, path); });
Object.keys(object).forEach((key) => { let value = object[key]; if (IsPlainObject(value)) { object[key] = Sanitize(value, options); } else { if (IsString(value)) { object[key] = value = stripNullTerminator(value).trim(); } if (options.stripNull && value === null || isBlank(value)) { if (options.pruneMethod === 'replace') { object[key] = options.replaceValue; } else { Unset(object, key); } } } });
ASYNC_PAYLOAD_FIELDS.forEach((field) => { unset(actionToDispatchNow, field) })
exports.remove = function (_path) { _unset(this.config, replacePath(_path)) return this }