Options
All
  • Public
  • Public/Protected
  • All
Menu

@tsfun/misc — Reference

Index

Functions

Functions

Const always

  • always<X>(x: X): (Anonymous function)
  • Turn a value into a nullary function that returns the value

    Type parameters

    • X

    Parameters

    • x: X

      Value in box

    Returns (Anonymous function)

    A function that takes no arguments and returns value

Const id

  • id<X>(x: X): X
  • Take a value and return the very same value

    Type parameters

    • X

    Parameters

    • x: X

      Value to return

    Returns X

    x

Generated using TypeDoc