From ca45ee6ad0bfcdb1c50142bbaa1906456e9e5d5f Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Tue, 16 Jan 2024 08:08:42 +0000 Subject: [PATCH] Auto-generated commit --- base/to-reversed/README.md | 9 ++++----- base/to-reversed/examples/index.js | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/base/to-reversed/README.md b/base/to-reversed/README.md index f3054085..fcd88031 100644 --- a/base/to-reversed/README.md +++ b/base/to-reversed/README.md @@ -85,18 +85,17 @@ var bool = ( out === x ); ```javascript -var Float64Array = require( '@stdlib/array/float64' ); var zeroTo = require( '@stdlib/array/base/zero-to' ); var toReversed = require( '@stdlib/array/base/to-reversed' ); -var x = new Float64Array( zeroTo( 6 ) ); -// returns [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0 ] +var x = zeroTo( 6 ); +// returns [ 0, 1, 2, 3, 4, 5 ] var y = toReversed( x ); -// returns [ 5.0, 4.0, 3.0, 2.0, 1.0, 0.0 ] +// returns [ 5, 4, 3, 2, 1, 0 ] var z = toReversed( y ); -// returns [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0 ] +// returns [ 0, 1, 2, 3, 4, 5 ] ``` diff --git a/base/to-reversed/examples/index.js b/base/to-reversed/examples/index.js index baca6de1..031d8bc3 100644 --- a/base/to-reversed/examples/index.js +++ b/base/to-reversed/examples/index.js @@ -18,18 +18,17 @@ 'use strict'; -var Float64Array = require( './../../../float64' ); var zeroTo = require( './../../../base/zero-to' ); var toReversed = require( './../lib' ); -var x = new Float64Array( zeroTo( 6 ) ); +var x = zeroTo( 6 ); console.log( x ); -// => [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0 ] +// => [ 0, 1, 2, 3, 4, 5 ] var y = toReversed( x ); console.log( y ); -// => [ 5.0, 4.0, 3.0, 2.0, 1.0, 0.0 ] +// => [ 5, 4, 3, 2, 1, 0 ] var z = toReversed( y ); console.log( z ); -// => [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0 ] +// => [ 0, 1, 2, 3, 4, 5 ]