function PageInstance ( page ) { this . value = page ; return this ; } PageInstance . prototype . data = function ( ) { return this . value . data ; } ; export async function Page ( cursor ) { return cursor . next ( ) . then ( ( { value } ) => { if ( ! value ) { return { data : [ ] } ; } else { return value ; } } ) ; }