Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 507 Bytes

File metadata and controls

21 lines (15 loc) · 507 Bytes

getObjectNonNullValuesCount Retrieving the count of non-null object values

Official IntelliJ IDEA plugin live template

getObjectNonNullValuesCount(targetObject: object): number
sample = {
  themes: {
    redmond: {}
    sunny: null
  }
}


p(getObjectNonNullValuesCount(sample)) // => 1
p(length(values(sample))) // => 2