2.1.6 • Published 1 year ago

oktopost-plankton v2.1.6

Weekly downloads
22
License
MIT
Repository
github
Last release
1 year ago

Plankton

NPM Version Build Status Coverage Status

Additional standalone libraries

Installation and Usage

npm install oktopost-plankton --save
  • In node
const is = require('oktopost-plankton').is;
const obj = require('oktopost-plankton').obj;
const foreach = require('oktopost-plankton').foreach;


if (is.defined(myArray))
{
	foreach.key(myArray, function (index)
	{
		console.log('Got index ' + index);
	});
	
	foreach(myArray, function (value)
	{
		console.log('Got value ' + value);
	});
}


let myCollectionKeys = obj.keys(myCollection);
  • In web Plankton library is registered under window.Plankton and can be used as following:
var is = window.Plankton.is;
var obj = window.Plankton.obj;
var foreach = window.Plankton.foreach;

if (is.defined(myArray))
{
	foreach.key(myArray, function (index)
	{
		console.log('Got index ' + index);
	});
	
	foreach(myArray, function (value)
	{
		console.log('Got value ' + value);
	});
}

var myCollectionKeys = obj.keys(myCollection);
2.1.6

1 year ago

2.1.5

2 years ago

2.1.4

3 years ago

2.1.3

4 years ago

2.1.2

5 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.1.2

7 years ago

1.1.0

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago