sindresorhus / math-clamp
Clamp a number
☆14Updated 9 months ago
Related projects ⓘ
Alternatives and complementary repositories for math-clamp
- Include only certain items in an array☆16Updated 3 years ago
- Exclude certain items from an array☆20Updated 3 years ago
- Lax `url.format()` that formats a hostname and port into IPv6-compatible socket form of `hostname:port`☆13Updated 3 years ago
- Convert a Source Map object to a comment☆15Updated 3 years ago
- Strip shebang (eg. #!/bin/sh) from a string☆11Updated 3 years ago
- Check if a value is a function☆27Updated 3 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Updated 2 years ago
- ES2015 Number.isSafeInteger() ponyfill☆18Updated 3 years ago
- Find mapcodes in a string☆23Updated 2 years ago
- Get the avatar of a GitHub user☆21Updated 3 years ago
- Get the system default UID☆11Updated last year
- Strip UTF-8 byte order mark (BOM) from a buffer☆19Updated last year
- Node.js 0.12 util.debuglog() ponyfill☆19Updated last year
- Move around lines in a string☆10Updated 8 years ago
- Sort an array of numbers☆16Updated 3 years ago
- Check if a value is an error constructor☆13Updated 3 years ago
- Check if a number is a redirect HTTP status code☆23Updated 3 years ago
- Modify the values of an object☆28Updated 3 years ago
- TasteJS logo and artwork☆13Updated 9 years ago
- List of prototype properties for JavaScript types☆24Updated 6 months ago
- Split a string at one or more indices☆23Updated 3 years ago
- Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz☆19Updated 2 years ago
- Get the name of a named function☆33Updated 3 years ago
- Strip UTF-8 byte order mark (BOM)☆20Updated 3 years ago
- Remove or replace part of a string like Array#splice☆23Updated 3 years ago
- Get the maximum permitted length of a path of a Unix domain socket☆13Updated 3 years ago
- Check if a file path is a binary file☆42Updated 6 months ago
- Check if a JavaScript environment has a DOM☆19Updated 3 years ago
- Check if a file path is a compressed file☆16Updated 6 months ago
- Get an array of parent directories including itself☆27Updated last year