MCPcopy Create free account
hub / github.com/compat-table/compat-table / getKeys

Function getKeys

runner_support.js:5–19  ·  view source on GitHub ↗
(key, family, environments)

Source from the content-addressed store, hash-verified

3var createIterableHelper = require('./test-utils/testHelpers').createIterableHelper;
4
5function getKeys(key, family, environments) {
6 var res = [];
7 for (var k in environments) {
8 var env = environments[k];
9 if (env.family !== family) {
10 continue;
11 }
12 res.push(k);
13 if (k === key) {
14 // Include versions up to 'key' but not newer.
15 break;
16 }
17 }
18 return res;
19}
20
21function removeIndent(str) {
22 var indentation = /^[\t ]+/m.exec(str);

Callers 1

runner_support.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected