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

azureleaf

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azureleaf

A lightweight JavaScript library for data structure manipulation

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Azureleaf.js

A modern, lightweight Javascript data manipulation library

by Zak Schenck

Github

Installation

Go to your project's directory and type:

npm install azureleaf

Import as needed:

const { $azl } = require('azureleaf');

Some Included Features

  • Shuffling an array
$azl.shuffle([1, 2, 3]) // Returns a randomized array
  • Flattening an array of any size
$azl.flatten([1, [2, 3], [4, 5, [6, 7]]]) // Returns [1, 2, 3, 4, 5, 6, 7]
  • Count occurrences in an array. Returning an object.
$azl.allOccurrences([1, 1, 3, 3, 5]) // Returns { 1: 2, 3: 2, 5, 1 }
  • Checking equality between two objects. Returns boolean
$azl.objEquality({name: 'Zak', state: 'MA'}, {name: 'Zak', state: 'MA'}) // Returns true
  • Creating a deep copy of an object
$azl.objCopy({name: 'Zak', state: 'MA'}) // Returns a deep copy of {name: 'Zak', state: 'MA'}
  • You can convert strings into multiple cases such as camel case, pascal case, and snake case.
$azl.snakeCase('Hello, world') // Returns 'hello_world'
$azl.camelCase('Hello, world') // Returns 'helloWorld'
$azl.pascalCase('Hello, world') // Returns 'HelloWorld'

..And more!

Keywords

FAQs

Package last updated on 19 Nov 2023

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