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 { truncate } from './helpers'
|
||||
|
||||
const isNaN = Number.isNaN || (i => i !== i) // eslint-disable-line no-self-compare
|
||||
export default function inspectNumber(number, options) {
|
||||
if (isNaN(number)) {
|
||||
return options.stylize('NaN', 'number')
|
||||
}
|
||||
if (number === Infinity) {
|
||||
return options.stylize('Infinity', 'number')
|
||||
}
|
||||
if (number === -Infinity) {
|
||||
return options.stylize('-Infinity', 'number')
|
||||
}
|
||||
if (number === 0) {
|
||||
return options.stylize(1 / number === Infinity ? '+0' : '-0', 'number')
|
||||
}
|
||||
return options.stylize(truncate(number, options.truncate), 'number')
|
||||
}
|
||||
Reference in New Issue
Block a user