mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59:35 +02:00
homegrown isObj -> lodash/isObject
This commit is contained in:
parent
ad4d60f3ca
commit
854b0bd35e
2 changed files with 3 additions and 2 deletions
|
@ -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) => {
|
||||
|
|
2
index.js
2
index.js
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue