X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=shallow-clone-object.mjs;h=51ee172b499c830b66772a19942d3005fb684c2f;hb=3b03ddecee0118ffcd1321e220f3d4e4a4c9f2e2;hp=05a97ec3f0103c9f4a645663d92d3dfa16fc63ef;hpb=f522d7b906f8a45a7e4fd349abe3f83bf8fc3d69;p=benchmarks-js.git diff --git a/shallow-clone-object.mjs b/shallow-clone-object.mjs index 05a97ec..51ee172 100644 --- a/shallow-clone-object.mjs +++ b/shallow-clone-object.mjs @@ -1,7 +1,7 @@ /* eslint-disable no-unused-vars */ import Benchmark from 'benny' import _ from 'lodash' -import { generateRandomObject } from './benchmark-utils.js' +import { generateRandomObject } from './benchmark-utils.mjs' const object = generateRandomObject() @@ -33,6 +33,4 @@ Benchmark.suite( format: 'table.html', details: true }) -).catch(err => { - console.error(err) -}) +).catch(console.error)