{"ScriptPreparationCode":"const props = {\r\n a: 1,\r\n b: {\r\n c: \u0022foo\u0022,\r\n d: \u0022bar\u0022,\r\n },\r\n e: 3,\r\n f: 7,\r\n g: \u0022test\u0022,\r\n h: {\r\n i: {\r\n j: 123,\r\n },\r\n },\r\n}\r\nconst keys = [\u0027a\u0027, \u0027e\u0027, \u0027f\u0027, \u0027k\u0027, \u0027l\u0027, \u0027m\u0027, \u0027n\u0027, \u0027o\u0027, \u0027p\u0027, \u0027q\u0027, \u0027r\u0027, \u0027s\u0027, \u0027t\u0027, \u0027u\u0027, \u0027v\u0027]","TestCases":[{"Name":"Lodash","Code":"const spacing = lodash.pick(props, keys)","IsDeferred":false},{"Name":"Native 1","Code":"const entries = Object.entries(props)\r\nconst spacingEntries = entries.filter(([key]) =\u003E keys.includes(key))\r\nconst spacing = Object.fromEntries(spacingEntries)","IsDeferred":false},{"Name":"ES Toolkit","Code":"const spacing = estoolkit.pick(props, keys)","IsDeferred":false},{"Name":"Native 2","Code":"const spacing = keys.reduce((obj, key) =\u003E {\r\n if (props \u0026\u0026 props.hasOwnProperty(key)) {\r\n obj[key] = props[key];\r\n }\r\n return obj;\r\n}, {});","IsDeferred":false}]}