@unikue/ts-lang-utils
    Preparing search index...

    Function getPropIgnoreCase

    • Returns the property value if property name is present on the given object, case-insensitive

      Parameters

      • object: any

        The object to inspect

      • Optionalprop: null | string

        The property name to inspect, parent property and child property are concat with dot (.), case insensitive

      • OptionaldefaultValue: any

        The default value if the prop cannot be found

      Returns any

      the property value if property name is present on the given object, case-insensitive

      David Hsing

      getPropIgnoreCase({Foo: 'bar'}, 'foo');    // 'bar'
      getPropIgnoreCase({foo: {bar: 'foobar'}}, 'FOO.BAR'); // 'foobar'