✏️ 编辑:_createBaseFor.js
路径:
/home/boguraj1/public_html/jobsite/node_modules/lodash/_createBaseFor.js
大小:648 B · 修改:2022-11-21 20:09:40 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
/** * Creates a base function for methods like `_.forIn` and `_.forOwn`. * * @private * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {Function} Returns the new base function. */ function createBaseFor(fromRight) { return function(object, iteratee, keysFunc) { var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length; while (length--) { var key = props[fromRight ? length : ++index]; if (iteratee(iterable[key], key, iterable) === false) { break; } } return object; }; } module.exports = createBaseFor;
💾 保存
取消
保存为 UTF-8,换行统一为 LF