@webdeveric/utils
    Preparing search index...
    • Determine if input is an object and directly has the provided properties.

      Type Parameters

      • T
      • P extends PropertyKey

      Parameters

      • input: T
      • properties: P[]

      Returns input is T & Record<P, unknown>

      isAnyObjectWithOwn({ a: 1 }, ['a']); // true
      isAnyObjectWithOwn(Object.create({ a: 1 }), ['a']); // false