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

    Function isPrimitive

    • Returns whether the given object is primitive

      Parameters

      • object: any

        the object to check

      Returns boolean

      whether the given object is primitive

      David Hsing

      isPrimitive(undefined);    // true
      isPrimitive(true); // true
      isPrimitive('foobar'); // true
      isPrimitive({foo: 'bar'}); // false