1.2.2 • Published 2 years ago

@anopszetex/my-package v1.2.2

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

study-package

creating a simple package for study

Quick start

Create a folder and make it your current working directory:

mkdir my-app
cd my-app

Install dependencies:

npm i

To start the app:

npm run dev

Install

To install my-package in an existing project as a dependency:

Install with npm:

npm i @anopszetex/my-package

Install with yarn:

yarn add @anopszetex/my-package

Example Usage

import { mapAsync } from '@anopszetex/my-package'

{
  const items = [1, 2];
  const total = mapAsync(items, (item) => item * 2);

  console.log([...total]); //=> [2, 4, 6]
}

{
  const items = [1, 2];
  const total = mapAsync(items)((row) => row * 2);

  console.log([...total]); //=> [2, 4, 6]
}
1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

2.0.0

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago