mirror of
				https://github.com/public-transport/db-vendo-client.git
				synced 2025-11-04 10:06:32 +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'
 | 
					'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 hasProp = (o, k) => Object.prototype.hasOwnProperty.call(o, k)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const createFormatProductsFilter = (profile) => {
 | 
					const createFormatProductsFilter = (profile) => {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										2
									
								
								index.js
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								index.js
									
										
									
									
									
								
							| 
						 | 
					@ -2,6 +2,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const minBy = require('lodash/minBy')
 | 
					const minBy = require('lodash/minBy')
 | 
				
			||||||
const maxBy = require('lodash/maxBy')
 | 
					const maxBy = require('lodash/maxBy')
 | 
				
			||||||
 | 
					const isObj = require('lodash/isObject')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const defaultProfile = require('./lib/default-profile')
 | 
					const defaultProfile = require('./lib/default-profile')
 | 
				
			||||||
const createParseBitmask = require('./parse/products-bitmask')
 | 
					const createParseBitmask = require('./parse/products-bitmask')
 | 
				
			||||||
| 
						 | 
					@ -9,7 +10,6 @@ const createFormatProductsFilter = require('./format/products-filter')
 | 
				
			||||||
const validateProfile = require('./lib/validate-profile')
 | 
					const validateProfile = require('./lib/validate-profile')
 | 
				
			||||||
const _request = require('./lib/request')
 | 
					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 isNonEmptyString = str => 'string' === typeof str && str.length > 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const createClient = (profile, request = _request) => {
 | 
					const createClient = (profile, request = _request) => {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue