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-property-value-count.js
12 lines
(10 loc)
•
232 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
module.exports = function (property, value) {
if
(!
this
.properties || !
this
.properties[property]) {
return
0
}
return
this
.properties[property] .filter(function (
val
) {
return
val
=== value }) .length }