MCPcopy
hub / github.com/evrone/postcss-px-to-viewport / isExclude

Function isExclude

index.js:138–143  ·  view source on GitHub ↗
(reg, file)

Source from the content-addressed store, hash-verified

136}
137
138function isExclude(reg, file) {
139 if (Object.prototype.toString.call(reg) !== '[object RegExp]') {
140 throw new Error('options.exclude should be RegExp.');
141 }
142 return file.match(reg) !== null;
143}
144
145function declarationExists(decls, prop, value) {
146 return decls.some(function (decl) {

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…