https://cdn.jsdelivr.net/combine/npm/
[email protected]
,npm/
[email protected]
/forIn.min.js
{"ScriptPreparationCode":null,"TestCases":[{"Name":"_.forIn","Code":"const vehicle = {\r\n color: \u0027blue\u0027,\r\n mileage: 100000,\r\n year: 2014\r\n}\r\n\r\nconst logKey = key =\u003E console.log(key)\r\n\r\n_.forIn(vehicle, logKey)","IsDeferred":false},{"Name":"_.each(Object.keys)","Code":"const vehicle = {\r\n color: \u0027blue\u0027,\r\n mileage: 100000,\r\n year: 2014\r\n}\r\n\r\nconst logKey = key =\u003E console.log(key)\r\n\r\n_.each(Object.keys(vehicle), logKey)","IsDeferred":false},{"Name":"for...in","Code":"const vehicle = {\r\n color: \u0027blue\u0027,\r\n mileage: 100000,\r\n year: 2014\r\n}\r\n\r\nconst logKey = key =\u003E console.log(key)\r\n\r\nfor (const key in vehicle) {\r\n logKey(key)\r\n}","IsDeferred":false}]}