An open API service indexing awesome lists of open source software.

https://github.com/writetome51/public-array-container-by-type-implementation

A private function for use inside subclasses of PublicArrayContainer that have the method .byType()
https://github.com/writetome51/public-array-container-by-type-implementation

Last synced: 11 months ago
JSON representation

A private function for use inside subclasses of PublicArrayContainer that have the method .byType()

Awesome Lists containing this project

README

          

## _publicArrayContainer_byType_implementation(
      type,
      instance
): any

A private function for use inside subclasses of PublicArrayContainer that
have the method `.byType()` . It's meant to be called inside the definition
of `.byType()` inside each of those classes.

### Parameters
```
type: 'number' | 'boolean' | 'string' | 'array' | 'object' | 'function' | 'undefined' | 'null',
instance: {
byTest: (testFunction: (item: any, index?: number, array?: any[]) => boolean) => any
}
```

### Installation
```bash
npm i @writetome51/public-array-container-by-type-implementation
```

### Loading
```
// If using TypeScript:
import { _publicArrayContainer_byType_implementation }
from '@writetome51/public-array-container-by-type-implementation';

// If using ES5 JavaScript:
var _publicArrayContainer_byType_implementation =
require('@writetome51/public-array-container-by-type-implementation')
._publicArrayContainer_byType_implementation;
```