• Safely returns keys on an object or an empty array if not an object.

    Parameters

    • object: object

      An object.

    Returns string[]

    Object keys or empty array.