1.2.1 • Published 2 years ago

arubyray v1.2.1

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
2 years ago

Arubyray: array utilities in Ruby

Arubyray contains array utilities which are provided Ruby's Array class.

You can use this utilities as both function and method.

Usage

import * as Arubyray from 'arubyray'

Arubyray.combination([1, 2, 3], 2) // => [[1, 2], [1, 3], [2, 3]]

Full function list is here.

With arubyray/extension, you can use utilities as method of Array.

import 'arubyray/extension'

[1, 2, 3].combination(2) // same as `Arubyray.combination([1, 2, 3], 2)`

Note: arubyray/extension mutates Array.prototype at runtime. So once import arubyray/extension, the extension is enabled everywhere.

License

Apache License 2.0

1.2.0

2 years ago

1.2.1

2 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.1.0

3 years ago