[api] Added missing .detect method
[code] Added missing JSDoc