@filipevoges/isset

    1.1.0 • Public • Published

    build

    isset

    isset for javascript - inspired by php

    Installation

    npm install --save filipevoges/isset

    Example usage

    import('@filipevoges/isset');
    
    "1".isset()                 // True
    [].isset()                  // True
    [].isset("foo")             // false
    [].isset(0)                 // false
    ["foo"].isset("foo")        // false
    ["foo"].isset(0)            // True
    {}.isset()                  // True
    {0: "foo"}.isset(0)         // True
    {0: "foo"}.isset("foo")     // false
    isset(1)                    // True
    isset("1")                  // True
    isset([])                   // True
    isset([], "foo")            // false
    isset([], 0)                // false
    isset(["foo"], "foo")       // false
    isset(["foo"], 0)           // True
    isset({})                   // True
    isset({0: "foo"}, 0)        // True
    isset({0: "foo"}, 1)        // false
    isset({0: "foo"}, "foo")    // false

    Issues

    If there is any problem, please report on Issues page

    Install

    npm i @filipevoges/isset

    DownloadsWeekly Downloads

    7

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    5.41 kB

    Total Files

    6

    Last publish

    Collaborators

    • filipevoges