Sha256: 7f672316d6af99fcecac908fa518fdf45149b785c25d7f84f6a967b5f7571810

Contents?: true

Size: 293 Bytes

Versions: 185

Compression:

Stored size: 293 Bytes

Contents

function transform(input) {
  const output = {};

  Object.keys(input).forEach((key) => {
    const items = input[key] || [];

    items.forEach((item) => {
      const value = item.toLowerCase();
      output[value] = Number(key);
    });
  });

  return output;
}

export default transform;

Version data entries

185 entries across 185 versions & 1 rubygems

Version Path
trackler-2.2.1.159 tracks/ecmascript/exercises/etl/example.js
trackler-2.2.1.158 tracks/ecmascript/exercises/etl/example.js
trackler-2.2.1.157 tracks/ecmascript/exercises/etl/example.js
trackler-2.2.1.156 tracks/ecmascript/exercises/etl/example.js
trackler-2.2.1.155 tracks/ecmascript/exercises/etl/example.js
trackler-2.2.1.154 tracks/ecmascript/exercises/etl/example.js
trackler-2.2.1.153 tracks/ecmascript/exercises/etl/example.js
trackler-2.2.1.152 tracks/ecmascript/exercises/etl/example.js
trackler-2.2.1.151 tracks/ecmascript/exercises/etl/example.js
trackler-2.2.1.150 tracks/ecmascript/exercises/etl/example.js
trackler-2.2.1.149 tracks/ecmascript/exercises/etl/example.js
trackler-2.2.1.148 tracks/ecmascript/exercises/etl/example.js
trackler-2.2.1.147 tracks/ecmascript/exercises/etl/example.js
trackler-2.2.1.146 tracks/ecmascript/exercises/etl/example.js
trackler-2.2.1.145 tracks/ecmascript/exercises/etl/example.js
trackler-2.2.1.144 tracks/ecmascript/exercises/etl/example.js
trackler-2.2.1.143 tracks/ecmascript/exercises/etl/example.js
trackler-2.2.1.142 tracks/ecmascript/exercises/etl/example.js
trackler-2.2.1.141 tracks/ecmascript/exercises/etl/example.js
trackler-2.2.1.140 tracks/ecmascript/exercises/etl/example.js