JavaScript

객체의 길이를 구하는 방법 - JavaScript

파란배개 2020. 10. 10. 21:35
function countNumberOfKeys(obj) {
  return Object.keys(obj).length;
}