MCPcopy Create free account
hub / github.com/GoogleChrome/webstatus.dev / isFeature

Function isFeature

frontend/src/static/js/api/client.ts:250–259  ·  view source on GitHub ↗
(
  val: {} | null | undefined,
)

Source from the content-addressed store, hash-verified

248 );
249}
250
251function isFeature(
252 val: {} | null | undefined,
253): val is components['schemas']['Feature'] {
254 return (
255 val !== null &&
256 typeof val === 'object' &&
257 'feature_id' in val &&
258 'name' in val
259 );
260}
261
262export type WPTRunMetric = components['schemas']['WPTRunMetric'];

Callers 1

getFeatureMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected