pub unsafe fn len(env: Env, array: Local) -> u32 {
    let mut len = 0;
    assert_eq!(
        napi::get_array_length(env, array, &mut len as *mut _),
        napi::Status::Ok
    );
    len
}
/// Gets the length of a `napi_value` containing a JavaScript Array.
///
/// # Panics
/// This function panics if `array` is not an Array, or if a previous n-api call caused a pending
/// exception.
Gets the length of a `napi_value` containing a JavaScript Array.
Gets the length of a ` napi_value ` containing a JavaScript Array .
pub unsafe fn len(env: Env, array: Local) -> u32 {
    let mut len = 0;
    assert_eq!(
        napi::get_array_length(env, array, &mut len as *mut _),
        napi::Status::Ok
    );
    len
}
pub unsafe fn len ( env : Env , array : Local ) -> u32 { let mut len = 0 ; assert_eq ! ( napi get_array_length ( env array mut len as mut ) napi Status Ok ) ; len }
Gets the length of a `napi_value` containing a JavaScript Array.
Gets the length of a ` napi_value ` containing a JavaScript Array .
env
Env
array
Local
panics
This function panics if `array` is not an Array, or if a previous n-api call caused a pending
exception.
This function panics if ` array ` is not an Array or if a previous n - api call caused a pending exception .