HF RL Explorer

Task: Get Object Length in JavaScript

Task: Get Object Length in JavaScript: a task in Terminal-Lego-15k (Harbor dataset). Create a JavaScript utility function that returns the number of enumerable properties (length) of a plain JavaScript object, without converting it to an array as an intermediate step.

The task

Create a JavaScript utility function that returns the number of enumerable properties (length) of a plain JavaScript object, without converting it to an array as an intermediate step.

Part of PrimeIntellect/Terminal-Lego-15k.