Namespace action

Exports the Action type along with many useful Step types which are used to create 'live' functions.

Actions are very expressive, more controllable and mutable almost without any performance penalty. The flow is easy to track as it is declarative. You can create new step types which interpret your code at speed.

Actions can be used for:

  1. regular code - You can use Actions to implement common patterns like function chaining and passing the same arguments to multiple functions.

  2. declarative programming - You can build up code for the same action in multiple places, allowing you to be more declarative in how you write code. This is a powerful feature for reactivity.

  3. implementing other libraries that will generate code on the fly - You can create and modify actions easily without parsing and compiling from string (unlike Function constructor). This allows you to maintain a consistently good performance throughout your code.

  4. custom DSLs - You can write your own steps to interpret code however you like. for example your own markup language

  5. etc - You can probably do other cool things with Actions that we havent yet to mention or envisage.

Actions can be used in any JavaScript environment as it has no platform dependencies. It is of course performant and lightweight.

Currently this module has not been fully tested.

Index

Classes

Interfaces

Type Aliases

Variables

Functions