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

x/ayonli_jsext/pipe.ts>default

A JavaScript extension package for building strong and modern applications.
Latest
function default
import { default } from "https://deno.land/x/ayonli_jsext@v0.9.72/pipe.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