
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Small functions I use mostly in my projects, for my learning
List of functions
toString(<string|array>, <if array then joiner>)
This converts the string / array provided to string, if array is provided then array.join()
is used internally to convert the array as string.
optional| joiner
- if you pass the joiner key, it will join the array with the provided key.toUpper(<string>)
This convert the provided value to string first and make it uppercase.
toLower(<string>)
This convert the provided value to string first and make it lowercase.
isUniqueArray(<array>, <isCaseInSensitive>)
This checks whether the provided array is unique or not.
optional| isCaseInSensitive
, this will make the values in array to lowercase and checks for the unique (internally it calls the cleanPureArray)uniqueArray(<array>, <isCaseInSensitive>)
This returns a unique array based on the provided array.
optional| isCaseInSensitive
, this will make the values in array to lowercase and start the unique process (internally it calls the cleanPureArray)isObjectArray(<object_array>)
This will return whether the provided array is object array or not.
parseBoolean(<string>)
This will parse the provided string will return true || false, or return the provided value itself
FAQs
Modern JavaScript utility library focused on the build size
The npm package js-fns receives a total of 36 weekly downloads. As such, js-fns popularity was classified as not popular.
We found that js-fns demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.