object-toolbox
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

object-toolbox

Build State Coverage License Version

Simple js plain object toolbox. Provides some enhance methods for js object.

Api Document

https://glenzli.github.io/object-toolbox/

Example

import { operateLeaf, Fit } from 'object-toolbox';

const point1 = { x: 1, y: 2 };
const point2 = { x: 2, y: -2 };
const point3 = operateLeaf((x: number, y: number) => x + y, point1, point2);
// point3 = { x: 3, y: 0 }

const fit = new Fit();
const point4 = fit.fit(0.5, point1, point2);
// point4 = { x: 1.5, y: 0 }

Package Sidebar

Install

npm i object-toolbox

Weekly Downloads

0

Version

1.2.3

License

MIT

Unpacked Size

431 kB

Total Files

28

Last publish

Collaborators

  • luz-alphacode