UNPKG
@dimanech/cssstat-core
Version:
latest (3.3.1)
3.3.1
3.3.0
3.2.1
3.2.0
High-level stats for stylesheets
github.com/dimanech/cssstats-core
dimanech/cssstats-core
@dimanech/cssstat-core
/
lib
/
get-unique-property-count.js
10 lines
(7 loc)
•
194 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
const
_ = require(
'lodash'
) module.exports = function (property) {
if
(!
this
.properties || !
this
.properties[property]) {
return
0
}
return
_.uniq(
this
.properties[property]).length }