MCPcopy Index your code
hub / github.com/postcss/postcss / isMap

Method isMap

lib/previous-map.js:64–71  ·  view source on GitHub ↗
(map)

Source from the content-addressed store, hash-verified

62 }
63
64 isMap(map) {
65 if (typeof map !== 'object') return false
66 return (
67 typeof map.mappings === 'string' ||
68 typeof map._mappings === 'string' ||
69 Array.isArray(map.sections)
70 )
71 }
72
73 loadAnnotation(css) {
74 let comments = css.match(/\/\*\s*# sourceMappingURL=/g)

Callers 1

loadMapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected