New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ukon1990/js-utilities

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ukon1990/js-utilities

A light weight package for object and array manipulation. As well as some utilities for matching text.

  • 0.0.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
increased by166.67%
Maintainers
1
Weekly downloads
 
Created
Source

Javascript utilities

This is a small package with some utilities.

ObjectUtil

  • isObject(value) - Checks if a value is an object and not array
  • overwrite(fromObject, toObject) - Replaces all the values of one objects with another object
  • clone(object) - Returns a cloned version of an object. Removing all child object references.
  • isEqual(object1, object2) - Checks if two objects are equal regardless of object reference.
  • getDifference(object1, object2) - Returns an array of object differences as Difference objects.

ArrayUtil

  • isObject(value) - Checks if a value is an object and not array
  • overwrite(fromArray, toArray) - Replaces all the values of one array with another array
  • clone(array) - Returns a cloned version of an array. Removing all child object references.
  • isEqual(array1, array2) - Checks if two arrays are equal regardless of object reference.
  • getDifference(array1, array2) - Returns an array of differences as Difference objects.

TextUtil

  • isEmpty(string) - Checks if a string is null, undefined or has a length of 0.
  • getMatchingParts(string, stringToFind) - Returns a Match object. The Match object for getMatchingParts('Chicken', 'ck') looks like this {start: 'Chi', match: 'ck', end: 'en'}.
  • getIndexOf(sourceString, targetString) - Is basically sourceString.toLowerCase().indexOf(targetString.toLowerCase)
  • contains(sourceString, targetString) - Checks if a string exists within another. This is case-insensitive.
  • isLowerCase(string) - Checks if a string is upper or lowercase.

Keywords

FAQs

Package last updated on 15 May 2019

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