타입확인하는 법

SS·2022년 10월 25일
0
const newComments = comments?.filter((comments) => comments.postId === Number(id))
  console.log("new", newComments)
 // console.log(typeof id) 타입 확인하는 법
profile
매일매일 성장할 수 있도록!

0개의 댓글