Documentationcurrent version
Help us improve the docs by fixing typos and proposing enhancements.

Nikita

Sibling action

Nikita stores the hierarchical tree of the actions running in a Nikita session. The sibling is the action with the same parent and which was executed just before the current action.

The sibling property is an alias of siblings[siblings.length-1].

Properties

It is an object with the following properties:

Usage

The properties are available in the action handler under the sibling property in the first argument:

nikita
// Call 1st action
.call(() => true)
// Call 2nd action
.call(({sibling}) => {
  // Print the sibling action
  console.info(sibling)
})
Edit on GitHub
Navigate
About

Nikita is an open source project hosted on GitHub and developed by Adaltas.