switch to ESM
[benchmarks-js.git] / shallow-clone-object.mjs
similarity index 86%
rename from shallow-clone-object.js
rename to shallow-clone-object.mjs
index f8e193b65e701a7d91294cfa6bf973cd7d6b696d..05a97ec3f0103c9f4a645663d92d3dfa16fc63ef 100644 (file)
@@ -1,7 +1,7 @@
 /* eslint-disable no-unused-vars */
-const Benchmark = require('benny')
-const _ = require('lodash')
-const { generateRandomObject } = require('./benchmark-utils')
+import Benchmark from 'benny'
+import _ from 'lodash'
+import { generateRandomObject } from './benchmark-utils.js'
 
 const object = generateRandomObject()