snomiao / peek-log

Drafting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

peek-log

Handy peeker from deep nested functional pipe

Usage

const nestedFunctionA = (v=0) => v+1
const obj = nestedFunctionA([
    peekLog( // 0.10021912164260627
        (function nestFunctionB({value}){return value()})
        ({value: () => Math.random(),})
    )
])

console.log('result', obj)

About

Drafting

License:MIT License


Languages

Language:TypeScript 100.0%