caseless-get

0.1.0 • Public • Published

caseless-get

Retrieve the property value case-insensitively.

Installation

npm i caseless-get -S

Usage

const { get, multiGet } = require('caseless-get');

const obj = {
  FOO: 'foo',
  Bar: 'bar',
};

get(obj, 'foo');                 // => 'foo'
multiGet(obj, ['foo', 'bar']);   // => ['foo', 'bar']

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i caseless-get

Weekly Downloads

3

Version

0.1.0

License

MIT

Unpacked Size

4.59 kB

Total Files

5

Last publish

Collaborators

  • nak2k