1.0.1 • Published 10 months ago

@maxslimb/next-permutation v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

next-permutation-package

Intro

next_permutation is a function of full permutation, which can receive a string s, and can return the next string in the permutation (if it has reached the last permutation, it will return the last one)

Install

npm i @maxslimb/next-permutation

Usage

const NextPermutation = require('next-permutation')
 
let Str = '125'
let res = NextPermutation(Str)
console.log(res) 
1.0.1

10 months ago

1.0.0

10 months ago