camsong/You-Dont-Need-jQuery

isEmptyObject method Can't contain no enumeration!

beginnerJq opened this issue · 0 comments

like this!

const isEmptyObject = object => { if (Object.getOwnPropertySymbols(object).length) { return false } if (Object.getOwnPropertyNames(object).length) { return false } return true }