Socket
Book a DemoInstallSign in
Socket

iterator-result

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iterator-result

A basic iterator result.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Iterator Result

Build status NPM version Dependencies

The iterator protocol defines a standard way to produce a sequence of values. An object is an iterator when it implements a next() method which returns objects that have at least the two properties value and done. This module provides a base class for such iterator results.

API Reference

Installation

npm install iterator-result

Usage

import IteratorResult from "iterator-result";

export class InfiniteIterator {

	constructor() {

		this.result = new IteratorResult();

	}

	next() {

		return this.result;

	}

}

Contributing

Maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Keywords

iterator

FAQs

Package last updated on 27 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts