Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/index.ts>pipe

A JavaScript extension package for building strong and modern applications.
Latest
function pipe
Re-export
import { pipe } from "https://deno.land/x/ayonli_jsext@v0.9.72/index.ts";

Constructs a Pipeline instance with the given value and performs pipe operations upon it.

Examples

Example 1

import pipe from "@ayonli/jsext/pipe";

const { value } = pipe("10")
    .pipe(parseInt)
    .pipe(Math.pow, 2)
    .pipe(v => v.toFixed(2));

console.log(`the value is ${value}`) // the value is 100.00

Returns

Pipeline<T>