UNPKG

open-loop-killer

Version:

Inject timeout protection into JavaScript loops to prevent infinite loops. Supports while, for, do-while, for-in, and for-of loops with customizable timeout and error messages.

5 lines (4 loc) 105 B
'use strict'; module.exports = () => { return '_' + Math.random().toString(36).substring(2, 8); };