Lurker News
Back to discussion

Comment by mind-blight

mind-blight1 reply#
What are the edge cases for Object.keys()? I've always wondered why that returned string[]
maple3142#
Example:

  const x = { a: 1, b: 2, c: 3 }
  const y: { a: number, b: number } = x
  console.log(Object.keys(y))