1.0.0 • Published 5 years ago

sondaj v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

sondaj.js

Enables the sampling operation to be executed on an array based on the given element count.

Usage

var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
var sampledArray = arr.sondajla(5);
console.log(sampledArray);

Or simply:

console.log([0, 1, 2, 3, 4, 5, 6, 7, 8, 9].sondajla(5));

API

Method

sondajla(samplingCount)

Returns randomized subset of array based on samplingCount.

License

MIT

1.0.0

5 years ago