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()
- Host: GitHub
- URL: https://github.com/writetome51/public-array-container-by-type-implementation
- Owner: writetome51
- License: mit
- Created: 2019-04-17T06:37:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-17T06:37:31.000Z (over 6 years ago)
- Last Synced: 2025-02-02T14:04:19.922Z (11 months ago)
- Language: TypeScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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;
```