Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

js-fns

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-fns

Small functions I use mostly in my projects, for my learning

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
68
decreased by-25.27%
Maintainers
1
Weekly downloads
 
Created
Source

js-fns

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

Package last updated on 02 Mar 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc