ractive.subtract()

edit this page

Decrements the selected keypath.

ractive.subtract( keypath[, number ])

Returns a Promise (see Promises)

keypath String

The keypath of the number we're decrementing, e.g. count

number

Defaults to 1. The number to decrement by

See also: ractive.add()