@cfware/symbols

1.0.0 • Public • Published

@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.

Readme

Keywords

none

Package Sidebar

Install

npm i @cfware/symbols

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

3.42 kB

Total Files

5

Last publish

Collaborators

  • coreyfarrell