Skip to content

Commit

Permalink
Use isArray method (prebid#4288)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaiminpanchal27 authored and sa1omon committed Nov 28, 2019
1 parent 2f68d35 commit 3f727d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adapters/bidderFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import CONSTANTS from '../constants.json';
import events from '../events';
import includes from 'core-js/library/fn/array/includes';
import { ajax } from '../ajax';
import { logWarn, logError, parseQueryStringParameters, delayExecution, parseSizesInput, getBidderRequest, flatten, uniques, timestamp, setDataInLocalStorage, getDataFromLocalStorage, deepAccess } from '../utils';
import { logWarn, logError, parseQueryStringParameters, delayExecution, parseSizesInput, getBidderRequest, flatten, uniques, timestamp, setDataInLocalStorage, getDataFromLocalStorage, deepAccess, isArray } from '../utils';
import { ADPOD } from '../mediaTypes';
import { getHook } from '../hook';

Expand Down Expand Up @@ -290,7 +290,7 @@ export function newBidder(spec) {
}

if (bids) {
if (bids.forEach) {
if (isArray(bids)) {
bids.forEach(addBidUsingRequestMap);
} else {
addBidUsingRequestMap(bids);
Expand Down

0 comments on commit 3f727d6

Please sign in to comment.