mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 13:51:47 +00:00
Add comment
This commit is contained in:
@@ -3773,6 +3773,10 @@ pub const JSValue = enum(JSValueReprInt) {
|
||||
return res;
|
||||
}
|
||||
|
||||
/// Returns true if
|
||||
/// - `" string literal"`
|
||||
/// - `new String("123")`
|
||||
/// - `class DerivedString extends String; new DerivedString("123")`
|
||||
pub inline fn isString(this: JSValue) bool {
|
||||
if (!this.isCell())
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user