Package Exports
- value-from-record
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (value-from-record) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
README.md
install
yarn add value-from-record
yarn-tool add value-from-record
yt add value-from-record
import valueFromRecord, { keyFromRecord } from '../index';
const record = {
Path: 'value of Path',
path: 'value of path',
} as const
let actual;
let expected;
actual = keyFromRecord('PaTh', record);
expected = 'Path';
expect(actual).toStrictEqual(expected);
actual = valueFromRecord('PaTh', record);
expected = record['Path'];
expect(actual).toStrictEqual(expected);