From 9836270d317d839febdc5dfa916eda3cb64f43db Mon Sep 17 00:00:00 2001 From: wtgtybhertgeghgtwtg Date: Wed, 1 Mar 2017 18:27:03 -0700 Subject: [PATCH] Use native `Object.assign`. --- index.js | 3 +-- package.json | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/index.js b/index.js index 996af2a..61efe98 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,5 @@ 'use strict'; -const assign = require('object-assign'); const stringWidth = require('string-width'); const stripAnsi = require('strip-ansi'); @@ -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) diff --git a/package.json b/package.json index c9e2163..d15fda3 100644 --- a/package.json +++ b/package.json @@ -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" },