sindresorhus / has-own-prop
A safer `.hasOwnProperty()`
☆30Updated last year
Related projects ⓘ
Alternatives and complementary repositories for has-own-prop
- Create an array with values that are present in the first input array but not additional ones☆38Updated 3 years ago
- Turn an object into a string of HTML attributes☆49Updated last year
- Get a random key from an object☆18Updated 4 months ago
- Get a random property from an object☆15Updated 4 months ago
- Check if a path is inside another path☆37Updated 2 years ago
- Check if a string is a scoped npm package name☆24Updated 2 years ago
- Check if a file path is a compressed file☆16Updated 6 months ago
- Split a string at one or more indices☆23Updated 3 years ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Check if a value is a function☆27Updated 3 years ago
- Modify the values of an object☆28Updated 3 years ago
- Include only certain items in an array☆16Updated 3 years ago
- Lowercase the keys of an object☆40Updated last year
- Exclude certain items from an array☆20Updated 3 years ago
- Strip the final newline character from a string/buffer☆33Updated last week
- Check if a number is in a given range☆21Updated 3 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆17Updated 2 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆62Updated 3 years ago
- Check if a value is an object☆40Updated 3 years ago
- Get the system default UID☆11Updated last year
- Gracefully restore the CLI cursor on exit☆35Updated 3 months ago
- Truncate a URL to a specific length☆61Updated 3 years ago
- Convert a Source Map object to a comment☆15Updated 3 years ago
- Strip UTF-8 byte order mark (BOM) from a buffer☆19Updated last year
- Check if a value is a regular expression☆24Updated 3 years ago
- Expands symbolic links and prints the resolved absolute filepath☆25Updated 6 months ago
- A better `Promise.race()`☆46Updated last year
- Check if a path is the current working directory☆19Updated 3 years ago
- Detect the dominant newline character of a string☆55Updated last year
- Get the remote origin URL of a Git repository☆45Updated 3 years ago