X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=shallow-clone-object.mjs;h=466135e4469deebdbd92f97f524328445b156d01;hb=9fcfc8629b9482b3ce970921aaacf16fd0adc6bd;hp=830a3862f3c1e3712cf9ed56a2a296dab49a963e;hpb=f913c68ce1ad111704f1f319706cb99e9659e236;p=benchmarks-js.git diff --git a/shallow-clone-object.mjs b/shallow-clone-object.mjs index 830a386..466135e 100644 --- a/shallow-clone-object.mjs +++ b/shallow-clone-object.mjs @@ -1,6 +1,7 @@ /* eslint-disable no-unused-vars */ import Benchmark from 'benny' import _ from 'lodash' + import { generateRandomObject } from './benchmark-utils.mjs' const object = generateRandomObject() @@ -33,6 +34,4 @@ Benchmark.suite( format: 'table.html', details: true }) -).catch(err => { - console.error(err) -}) +).catch(console.error)