From efb27b7db27b4daed77ba5a558ed80899cc9d76f Mon Sep 17 00:00:00 2001 From: Andrew Hansen Date: Tue, 22 Aug 2017 22:46:42 -0700 Subject: [PATCH] use `uniqBy` for iteratee support I noticed `uniq` does not take a second parameter the way it's being used here. I think the function what was intended is `uniqBy` --- local-cli/link/link.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local-cli/link/link.js b/local-cli/link/link.js index 124bd8e668a61c..33bed0053c2813 100644 --- a/local-cli/link/link.js +++ b/local-cli/link/link.js @@ -11,7 +11,7 @@ const log = require('npmlog'); const path = require('path'); -const uniq = require('lodash').uniq; +const uniqBy = require('lodash').uniqBy; const flatten = require('lodash').flatten; const chalk = require('chalk'); @@ -36,7 +36,7 @@ import type {RNConfig} from '../core'; log.heading = 'rnpm-link'; -const dedupeAssets = (assets) => uniq(assets, asset => path.basename(asset)); +const dedupeAssets = (assets) => uniqBy(assets, asset => path.basename(asset)); const linkDependencyAndroid = (androidProject, dependency) => {