@aureooms/js-splitting
v4.0.2
Published
array splitting code bricks for JavaScript
Downloads
31
Maintainers
Readme
js-splitting
Splitting code bricks for JavaScript. Parent is aureooms/js-algo.
let pivot = splitting.hoare( predicate , array , left , right ) ;
for ( let k of itertools.range( left , pivot , 1 ) ) predicate( array[k] ) ; // 0
for ( let k of itertools.range( pivot , right , 1 ) ) predicate( array[k] ) ; // 1
Can be managed through jspm, duo, component, bower, ender, jam, spm, and npm.
Install
jspm
jspm install github:aureooms/js-splitting
# or
jspm install npm:@aureooms/js-splitting
duo
No install step needed for duo!
component
component install aureooms/js-splitting
bower
bower install @aureooms/js-splitting
ender
ender add @aureooms/js-splitting
jam
jam install @aureooms/js-splitting
spm
spm install @aureooms/js-splitting --save
npm
npm install @aureooms/js-splitting --save
Require
jspm
let splitting = require( "github:aureooms/js-splitting" ) ;
// or
import splitting from '@aureooms/js-splitting' ;
duo
let splitting = require( "aureooms/js-splitting" ) ;
component, ender, spm, npm
let splitting = require( "@aureooms/js-splitting" ) ;
bower
The script tag exposes the global variable splitting
.
<script src="bower_components/@aureooms/js-splitting/js/dist/splitting.min.js"></script>
Alternatively, you can use any tool mentioned here.
jam
require( [ "@aureooms/js-splitting" ] , function ( splitting ) { ... } ) ;