
Security News
Potemkin Understanding in LLMs: New Study Reveals Flaws in AI Benchmarks
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
get-own-enumerable-keys-x
Advanced tools
Like Reflect.ownKeys but gets only enumerable properties.
Like Reflect.ownKeys but gets only enumerable properties.
module.exports(target)
⇒ Array
⏏This method returns only the enumerable own keys of an object.
Kind: Exported function
Returns: Array
- The enumerable own keys.
Throws:
typeError
- If target is null or undefined.Param | Type | Description |
---|---|---|
target | Object | The target. |
Example
import getOwnEnumerableKeys from 'get-own-enumerable-keys-x';
const obj = {bar: 1, foo: 2};
Object.defineProperty(obj, Symbol('first'), {
enumerable: false,
value: 'first',
});
const symbol = Symbol('second');
Object.defineProperty(obj, symbol, {
enumerable: true,
value: 'second',
});
console.log(getOwnEnumerableKeys(obj)); // ['bar', 'foo', symbol]
FAQs
Like Reflect.ownKeys but gets only enumerable properties.
The npm package get-own-enumerable-keys-x receives a total of 24 weekly downloads. As such, get-own-enumerable-keys-x popularity was classified as not popular.
We found that get-own-enumerable-keys-x demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.