homegrown isObj -> lodash/isObject

This commit is contained in:
Jannis R 2018-03-18 00:13:44 +01:00
parent ad4d60f3ca
commit 854b0bd35e
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,7 @@
'use strict'
const isObj = o => o !== null && 'object' === typeof o && !Array.isArray(o)
const isObj = require('lodash/isObject')
const hasProp = (o, k) => Object.prototype.hasOwnProperty.call(o, k)
const createFormatProductsFilter = (profile) => {

View file

@ -2,6 +2,7 @@
const minBy = require('lodash/minBy')
const maxBy = require('lodash/maxBy')
const isObj = require('lodash/isObject')
const defaultProfile = require('./lib/default-profile')
const createParseBitmask = require('./parse/products-bitmask')
@ -9,7 +10,6 @@ const createFormatProductsFilter = require('./format/products-filter')
const validateProfile = require('./lib/validate-profile')
const _request = require('./lib/request')
const isObj = o => o !== null && 'object' === typeof o && !Array.isArray(o)
const isNonEmptyString = str => 'string' === typeof str && str.length > 0
const createClient = (profile, request = _request) => {