MCPcopy
hub / github.com/ThatGuySam/doesitarm / isDevice

Function isDevice

helpers/app-derived.js:8–12  ·  view source on GitHub ↗
( listing )

Source from the content-addressed store, hash-verified

6} from '~/helpers/categories.js'
7
8export function isDevice ( listing ) {
9 if ( !listing.hasOwnProperty('endpoint') ) return false
10
11 return listing.endpoint.startsWith('/device/')
12}
13
14export function isVideo ( app ) {
15 return app.hasOwnProperty('thumbnail') && app.hasOwnProperty('timestamps')

Callers 1

getAppTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected