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

19 lines
535 B
Plaintext

import arrayMap from './_arrayMap.js';
/**
* The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
* of key-value pairs for `object` corresponding to the property names of `props`.
*
* @private
* @param {Object} object The object to query.
* @param {Array} props The property names to get values for.
* @returns {Object} Returns the key-value pairs.
*/
function baseToPairs(object, props) {
return arrayMap(props, function(key) {
return [key, object[key]];
});
}
export default baseToPairs;