HF RL Explorer

Task: Implement a JavaScript RegExp Type Detection Utility

Task: Implement a JavaScript RegExp Type Detection Utility: a task in Terminal-Lego-15k (Harbor dataset). Create a JavaScript utility function that reliably detects whether a given value is a regular expression (RegExp) object. The function must handle various edge cases and use multiple detection…

The task

Create a JavaScript utility function that reliably detects whether a given value is a regular expression (RegExp) object. The function must handle various edge cases and use multiple detection strategies.

Part of PrimeIntellect/Terminal-Lego-15k.