Skip to content

Commit

Permalink
Merge pull request #3 from wtgtybhertgeghgtwtg/drop-object-assign
Browse files Browse the repository at this point in the history
Use native `Object.assign`.
  • Loading branch information
shannonmoeller committed Mar 2, 2017
2 parents 6ec20b9 + 9836270 commit ea78f45
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict';

const assign = require('object-assign');
const stringWidth = require('string-width');
const stripAnsi = require('strip-ansi');

Expand Down Expand Up @@ -55,7 +54,7 @@ function toString(arr) {

function columns(values, options) {
values = concat.apply([], values);
options = assign({}, defaults, options);
options = Object.assign({}, defaults, options);

let cells = values
.filter(Boolean)
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
},
"homepage": "https://github.com/shannonmoeller/cli-columns",
"dependencies": {
"object-assign": "^4.1.1",
"string-width": "^2.0.0",
"strip-ansi": "^3.0.1"
},
Expand Down

0 comments on commit ea78f45

Please sign in to comment.