パッケージの詳細

value-from-record

bluelovers2kISC3.0.4

get value of record with first match key

create-by-yarn-tool, create-by-tsdx

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);

更新履歴

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

3.0.3 (2022-08-29)

🛠 Build System

3.0.1 (2021-12-07)

🛠 Build System

2.0.4 (2021-09-21)

✨ Features

2.0.3 (2021-09-21)

✨ Features

2.0.2 (2021-08-30)

🐛 Bug Fixes

2.0.1 (2021-08-30)

✨ Features

2.0.0 (2021-08-30)

✨ Features

  • support Map and more options (1d8375e)

1.0.3 (2020-05-19)

Note: Version bump only for package value-from-record

1.0.2 (2020-05-18)

Features

1.0.1 (2020-05-18)

Note: Version bump only for package value-from-record