Strata · API
upgrader.behind
upgrader.behind returns true when a stamp is behind the code on any grammar; a store calls it before it rewrites a row. A missing stamp ({}, null) is read as version 0 of every grammar. It throws TOO_NEW for a stamp that is ahead of the code.
{ theatre.buttons: 1 }upgrader.behind({ 'theatre.buttons': 0 })
upgrader.behind({ 'theatre.buttons': 1 })
upgrader.behind({})
upgrader.behind(null)[true, false, true, true]
Runs in this page on the installed package. The input and the expected output are defined by the example.