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

arraypermutation-node

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arraypermutation-node

permutate a array given

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Build Status

permutation

make permutation of a array given.

Install

This method permutate the item in a array given

$ npm install arraypermutation-node

Usage

const permutate  = require('arraypermutation-node')
permutate.right([1,2]) // -> [2,1]
permutate.right([1,2,3,4,5,6]) // -> [6,1,2,3,4,5]  
permutate.left([1,2]) // -> [2,1]
permutate.left([1,2,3,4])// -> [2,3,4,1]
permutate.left([1]) // [1]
permutate.right([1]) // [1] 

API Documentation permutation -> object

permutation.right(array) -> array

The param is the right what will be permutated to right. The array is passed by reference.

permutation.left(array) -> array

The param is the left what will be permutated to left. The array is passed by reference.

Keywords

FAQs

Package last updated on 10 Feb 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