Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 563 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 563 Bytes

@cfware/symbols NPM Version

An iterator which generates Symbol's

Usage

import Symbols from '@cfware/symbols';

export [Bar1, Bar2] = Symbols;

export class Foo {
	[Bar1] = 'protected field';
	[Bar2]() {
		return 'protected method';
	}
}

This allows declaration of protected fields. A primary goal is to be terser friendly, the Bar1 field will be safely shortened even when it is used across sources.