This module provides tools to work with different kinds of properties: string, symbolic, and private, — identically.
import {getName} from '@corpuscule/utils/lib/propertyUtils'
Extracts string name from a class property. If the property is a symbol, its description will be returned.
string or symbol property.
const foo = 'foo'; const bar = Symbol('bar'); getName(foo); // foo getName(bar); // bar
Generated using TypeDoc
This module provides tools to work with different kinds of properties: string, symbolic, and private, — identically.
Usage
import {getName} from '@corpuscule/utils/lib/propertyUtils'