Skip to content

Commit 0cee628

Browse files
committed
remove lodash.pluck (#75)
1 parent 81e6d15 commit 0cee628

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"author": "Henrik Joreteg <[email protected]>",
1717
"license": "MIT",
1818
"dependencies": {
19-
"lodash.pluck": "^3.0.2",
2019
"sdp-jingle-json": "^3.0.0",
2120
"traceablepeerconnection": "^1.1.6",
2221
"webrtc-adapter": "^1.0",

rtcpeerconnection.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
var util = require('util');
2-
var pluck = require('lodash.pluck');
32
var SJJ = require('sdp-jingle-json');
43
var WildEmitter = require('wildemitter');
54
var Peerconn = require('traceablepeerconnection');
@@ -249,7 +248,7 @@ PeerConnection.prototype.processIce = function (update, cb) {
249248
if (this.pc.signalingState === 'closed') return cb();
250249

251250
if (update.contents || (update.jingle && update.jingle.contents)) {
252-
var contentNames = pluck(this.remoteDescription.contents, 'name');
251+
var contentNames = this.remoteDescription.contents.map(function (c) { return c.name; });
253252
var contents = update.contents || update.jingle.contents;
254253

255254
contents.forEach(function (content) {

0 commit comments

Comments
 (0)