Skip to content

Non duplicate intializers

Compare
Choose a tag to compare
@koresar koresar released this 21 May 07:38
· 46 commits to master since this release

In this release the descriptor's .initializers array must not contain duplicate initializers.

function init() {}

const Stamp = compose({ initializers: [init] }).compose({ initializers: [init] });
const stampInitializers = Stamp.compose.initializers;

In previous release the array would contain 2 items:
stampInitializers.length === 2

In this release the array will contain only unique item, i.e. one:
stampInitializers.length === 1