@stamp/named (DEPRECATED)
This stamp (aka behaviour) is built into the stampit since stampit@4.2.0
and @stamp/it@1.1
.
@stamp/named (DEPRECATED)
Changes the Stamp.name
property using the new ES6 feature.
Supported platforms: node>=4, iOS>=10, Edge, FF, Chrome, Safari
If used in a non-supported environment (node <v4, or IE any version) then nothing will throw. But the Stamp.name
will always be "Stamp"
.
Example
Default behaviour (without this stamp):
New behaviour:
Or if you don't want to import the stamp you can import only the method:
Then stamp receives a different name instead of the default "Stamp":
Derived stamps behaviour:
Last updated