flowr

  • Docs
  • Examples
Docs Menu
  • Getting started
  • Conditionals
    • Maybe
    • Either
    • Flip
    • Reverse
    • Order
    • One
    • Some
    • Constant
    • Just
    • Nothing
    • Pure
  • Schedulers
    • Await
    • Stream
    • Delay
    • Debounce
    • Throttle

Reverse

import { Reverse } from 'flowr';

Reverse will reverse the order of all it's children when the predicate is true or none provided.

A B C
// for predicate === true
C B A
// for predicate === false:
A B C

Props

NameTypeDefaultDescription
whenbooltrueIf true, reverse the order. If false, do nothing.

See also Flip, Order

Contribute on Github! Edit this section.