Have ideas to improve npm?Join in the discussion! »

    just-is-primitive

    1.1.0 • Public • Published

    just-is-primitive

    Part of a library of zero-dependency npm modules that do just do one thing.
    Guilt-free utilities for every occasion.

    Try it now

    import isPrimitive from 'just-is-primitive';
    isPrimitive('hi') // true
    isPrimitive(3) // true
    isPrimitive(true) // true
    isPrimitive(false) // true
    isPrimitive(null) // true
    isPrimitive(undefined) // true
    isPrimitive(Symbol()) // true
    isPrimitive({}) // false
    isPrimitive([]) // false
    isPrimitive(function() {}) // false
    isPrimitive(new Date()) // false
    isPrimitive(/a/) // false

    Install

    npm i just-is-primitive

    DownloadsWeekly Downloads

    3

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    2.61 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar