1.1.2 • Published 2 years ago

@kinchan/io v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

io

Pleasantly useful functions that brightens your day.

io started as a personal project intended to assimilate lodash's functionality.

Before You Jump the Gun

This package is intended for test use only. It may not suited for production. Please use at your own risk.

Instillation

npm install @kinchan/io

Basic Usage

import {
    maxIndex
    within
} from "@kinchan/io";

maxIndex([1, 2, 3])
// -> 2

within(5, ["a", "b", "c"])
// -> false

API Reference

Type definition files are included in this package.

Examples are written in each module's test file. You can reference them on GitHub repo.

Array

maxIndex : (array: any[]) => number

within : (index: number, array: any[]) => boolean

outOfRange : (index: number, array: any[]) => boolean

complied : (array: any[], index: number) => number

last or latest : (array: Type[]) => Type | undefined

Object

reveal : (data: object | undefined | null) => object

String

trimmed : (text: string) => string

editing...

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago