UNPKG

@vladmandic/face-api

Version:

JavaScript module for Face Detection and Face Recognition Using Tensorflow/JS

8 lines (7 loc) 191 B
import { env } from '../env'; export function resolveInput(arg: string | any) { if (!env.isNodejs() && typeof arg === 'string') { return document.getElementById(arg) } return arg }