Socket
Socket
Sign inDemoInstall

equals-regalia

Package Overview
Dependencies
69
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    equals-regalia

Deep equality check for regalia trees


Version published
Weekly downloads
2
Maintainers
1
Install size
129 kB
Created
Weekly downloads
 

Readme

Source

Build Status JavaScript Style Guide

equals-regalia

Deep equality check for regalia trees.

Why?

Because perhaps we'd like to test our regalia trees.

How?

  1. Reversal
  2. Deep equality

Example

const regalia = require('regalia')
const equalsRegalia = require('equals-regalia')

const regaliaTree = regalia(['foo', 'bar'])
equalsRegalia(regaliaTree, ['foo']) // false
equalsRegalia(regaliaTree, ['foo', 'bar']) // true

API

equalsRegalia(regaliaTree, definitionTree)
  • regaliaTree: a regalia tree
  • definitionTree: a regalia definition tree (a regalia input)

Returns boolean result.

Keywords

FAQs

Last updated on 13 Dec 2016

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