node-addon-api 1.6.3 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/doc/value.md CHANGED
@@ -10,6 +10,7 @@ The following classes inherit, either directly or indirectly, from `Napi::Value`
10
10
  - [`Napi::ArrayBuffer`](array_buffer.md)
11
11
  - [`Napi::Boolean`](boolean.md)
12
12
  - [`Napi::Buffer`](buffer.md)
13
+ - [`Napi::Date`](date.md)
13
14
  - [`Napi::External`](external.md)
14
15
  - [`Napi::Function`](function.md)
15
16
  - [`Napi::Name`](name.md)
@@ -226,6 +227,14 @@ bool Napi::Value::IsBuffer() const;
226
227
 
227
228
  Returns a `bool` indicating if this `Napi::Value` is a Node buffer.
228
229
 
230
+ ### IsDate
231
+
232
+ ```cpp
233
+ bool Napi::Value::IsDate() const;
234
+ ```
235
+
236
+ Returns a `bool` indicating if this `Napi::Value` is a JavaScript date.
237
+
229
238
  ### As
230
239
 
231
240
  ```cpp