dev-api: add developer portal, OpenAPI spec, and Flatenbadet case study
- New /developers/ page with API docs, SDKs, pricing, use cases - OpenAPI 3.0 spec for Orders, Missions, Photos, Analytics - Case study: Glasskiosken i Flatenbadet — complete ROI analysis - Updated /order/ with recurring missions and frequency dropdown
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
import getFuncName from 'get-func-name'
|
||||
import inspectObject from './object'
|
||||
|
||||
const toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag ? Symbol.toStringTag : false
|
||||
|
||||
export default function inspectClass(value, options) {
|
||||
let name = ''
|
||||
if (toStringTag && toStringTag in value) {
|
||||
name = value[toStringTag]
|
||||
}
|
||||
name = name || getFuncName(value.constructor)
|
||||
// Babel transforms anonymous classes to the name `_class`
|
||||
if (!name || name === '_class') {
|
||||
name = '<Anonymous Class>'
|
||||
}
|
||||
options.truncate -= name.length
|
||||
return `${name}${inspectObject(value, options)}`
|
||||
}
|
||||
Reference in New Issue
Block a user