@anopszetex/my-package
v1.2.2
Published
creating a simple package for study
Downloads
13
Readme
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]
}