scopeid
Return simple incremental ids for each named scope
var scopeid = ; // no scope (default); // 0; // 1 ; // 0; // 1 // scopes keep id counter separate; // 2
You can also return an id as a string instead of an integer:
scopeid; // "0"
If .string
is passed a scope the returned id will be prefixed with scope
scopeid; // "prefix-0"scopeid; // "prefix-1"
Tests
Run tests using npm test