match all @component styleUrls definitions
^(\s+styleUrls:)\s?\[[\s\S]*?\],?/gm
| { | |
| "Import module": { | |
| "prefix": "im", | |
| "body": "import { $2 } from '$1';", | |
| "description": "Import module from location" | |
| }, | |
| "Print to console": { | |
| "prefix": "con", | |
| "body": "console.log('${label} -> ', ${label});", | |
| "description": "Log output to console" |
I hereby claim:
To claim this, I am signing this object:
| // https://stackblitz.com/edit/recursive-filter-prop?file=index.ts | |
| // perf: https://jsbench.me/8cjrlaine7/1 | |
| function flatFilter(nestedProp, compareKey, compareId, arr) { | |
| return arr.filter(o => { | |
| const keep = o[compareKey] != compareId; | |
| if (keep && o[nestedProp]) { | |
| o[nestedProp] = flatFilter(nestedProp, compareKey, compareId, o[nestedProp]); | |
| } | |
| return keep; |
| { | |
| "material": { | |
| "t": "material", | |
| "bg": "rgba(187,187,187,0)", | |
| "wt": "none", | |
| "wc": false, | |
| "fm": "Fira Code", | |
| "fs": "14px", | |
| "ln": false, | |
| "ds": true, |
| { | |
| "configVersion": 1, | |
| "timestamp": 1628205974939, | |
| "index": "/index.html", | |
| "assetGroups": [ | |
| { | |
| "name": "app-shell", | |
| "installMode": "prefetch", | |
| "updateMode": "prefetch", | |
| "cacheQueryOptions": { |