Socket
Socket
Sign inDemoInstall

jxutils

Package Overview
Dependencies
3
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jxutils

jillix utils


Version published
Weekly downloads
2
decreased by-90.48%
Maintainers
1
Install size
29.1 kB
Created
Weekly downloads
 

Readme

Source

Utils

Util functions for Mono modules.

Methods

findValue(parent, dotNot)

Finds a value in parent (object) using the dot notation passed in dotNot.

Params:

  • Object parent The object containing the searched value
  • String dotNot Path to the value

Return:

  • Anything Found value or undefined

findFunction(parent, dotNot)

Finds a function in parent (object) using the dot notation passed in dotNot.

Params:

  • Object parent The object containing the searched function
  • String dotNot Path to the function value

Return:

  • Function Function that was found in the parent object

flattenObject(obj)

Converts an object to a flat one

Params:

  • Object obj The object that should be converted

Return:

  • Object Flatten object

unflattenObject(flat)

Converts a flat object to an unflatten one

Params:

  • Object flat The flat object that should be converted

Return:

  • Object Unflatten object

cloneObject(item, deepClone)

Clones an object

Params:

  • Object item Object that should be cloned
  • Boolean deepClone If true, the subfields of the @item function will be cloned

Return:

  • Object The cloned object

slug(input)

Converts a string to slug

Params:

  • String input The input string that should be converted to slug

Return:

  • String The slug that was generated

Changelog

v0.1.4

  • deepClone in cloneObject method

v0.1.3

  • Added cloneObject method.

v0.1.2

  • Fixed typo in API function name

v0.1.1

  • Fixed typo
  • Published the module on NPM

v0.1.0

  • Initial release

Keywords

FAQs

Last updated on 14 Jul 2014

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc