Files
NapCatQQ/.pnpm-store/v3/files/1f/8c6872fe146350e8058473162cc8e2bffbc815856ed6d872814ad379c0f31a6b8b7dd2d4ff6fe831ee2bda04cf5800819b30b52e394c64b05070c25b7151b2
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

24 lines
567 B
Plaintext

import get from './get.js';
/**
* The base implementation of `_.at` without support for individual paths.
*
* @private
* @param {Object} object The object to iterate over.
* @param {string[]} paths The property paths to pick.
* @returns {Array} Returns the picked elements.
*/
function baseAt(object, paths) {
var index = -1,
length = paths.length,
result = Array(length),
skip = object == null;
while (++index < length) {
result[index] = skip ? undefined : get(object, paths[index]);
}
return result;
}
export default baseAt;