From 9e5a0673474b5a7cce40a83e0eccec0304bd9c42 Mon Sep 17 00:00:00 2001 From: aryan7071 Date: Fri, 21 Nov 2025 01:24:29 +0530 Subject: [PATCH 01/10] Add symbol/split --- .../@stdlib/symbol/split/README.md | 129 ++++++++++++++++++ .../@stdlib/symbol/split/docs/repl.txt | 17 +++ .../symbol/split/docs/types/index.d.ts | 31 +++++ .../@stdlib/symbol/split/docs/types/test.ts | 29 ++++ .../@stdlib/symbol/split/examples/index.js | 39 ++++++ .../@stdlib/symbol/split/lib/index.js | 49 +++++++ .../@stdlib/symbol/split/lib/main.js | 52 +++++++ .../@stdlib/symbol/split/package.json | 58 ++++++++ .../@stdlib/symbol/split/test/test.js | 52 +++++++ 9 files changed, 456 insertions(+) create mode 100644 lib/node_modules/@stdlib/symbol/split/README.md create mode 100644 lib/node_modules/@stdlib/symbol/split/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/symbol/split/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/symbol/split/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/symbol/split/examples/index.js create mode 100644 lib/node_modules/@stdlib/symbol/split/lib/index.js create mode 100644 lib/node_modules/@stdlib/symbol/split/lib/main.js create mode 100644 lib/node_modules/@stdlib/symbol/split/package.json create mode 100644 lib/node_modules/@stdlib/symbol/split/test/test.js diff --git a/lib/node_modules/@stdlib/symbol/split/README.md b/lib/node_modules/@stdlib/symbol/split/README.md new file mode 100644 index 000000000000..7082d87e4729 --- /dev/null +++ b/lib/node_modules/@stdlib/symbol/split/README.md @@ -0,0 +1,129 @@ + + +# SplitSymbol + +> [Symbol][mdn-symbol] which provides a method for replacing substrings matched by the current object. + + + +
+ +
+ + + + + +
+ +## Usage + +```javascript +var SplitSymbol = require( '@stdlib/symbol/split' ); +``` + +#### SplitSymbol + +[`symbol`][mdn-symbol] which provides a method for replacing substrings matched by the current object. + +```javascript +var s = typeof SplitSymbol; +// e.g., returns 'symbol' +``` + +
+ + + + + +
+ +## Notes + +- The [symbol][mdn-symbol] is only supported in environments which support [symbols][mdn-symbol]. In non-supporting environments, the value is `null`. + + +
+ + + + + +
+ +## Examples + + + +```javascript +var defineProperty = require( '@stdlib/utils/define-property' ); +var SplitSymbol = require( '@stdlib/symbol/split' ); + +function split(str) { + var idx = str.indexOf(this.value); + if (idx === -1) { + return str; + } + return str.substring(0, idx) + '/' + str.substring(idx + this.value.length); +} + +var obj = { value: 'foo' }; + +defineProperty(obj, SplitSymbol, { + 'configurable': true, + 'value': split +}); + +var str = 'foobar'; +console.log(str.split(obj)); + +``` + +
+ + + + + +
+ +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/symbol/split/docs/repl.txt b/lib/node_modules/@stdlib/symbol/split/docs/repl.txt new file mode 100644 index 000000000000..42c84a7d14de --- /dev/null +++ b/lib/node_modules/@stdlib/symbol/split/docs/repl.txt @@ -0,0 +1,17 @@ + +{{alias}} + Split symbol. + + This symbol provides a method for splitting substrings matched by the current object. + + The symbol is only supported in ES6/ES2015+ environments. For non-supporting + environments, the value is `null`. + + Examples + -------- + > var s = {{alias}} + e.g., + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/symbol/split/docs/types/index.d.ts b/lib/node_modules/@stdlib/symbol/split/docs/types/index.d.ts new file mode 100644 index 000000000000..80d2153f76df --- /dev/null +++ b/lib/node_modules/@stdlib/symbol/split/docs/types/index.d.ts @@ -0,0 +1,31 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 4.1 + +// EXPORTS // + +/** +* Split symbol. +* +* ## Notes +* +* - This symbol provides a method for splitting substrings matched by the current object. +* - The symbol is only supported in ES6/ES2015+ environments. For non-supporting environments, the value is `null`. +*/ +export = Symbol.split; diff --git a/lib/node_modules/@stdlib/symbol/split/docs/types/test.ts b/lib/node_modules/@stdlib/symbol/split/docs/types/test.ts new file mode 100644 index 000000000000..8ecb7854fa4f --- /dev/null +++ b/lib/node_modules/@stdlib/symbol/split/docs/types/test.ts @@ -0,0 +1,29 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +/* eslint-disable @typescript-eslint/no-unused-expressions */ + +import SplitSymbol = require( './index' ); + + +// TESTS // + +// The exported value is the `split` symbol... +{ + SplitSymbol; +} diff --git a/lib/node_modules/@stdlib/symbol/split/examples/index.js b/lib/node_modules/@stdlib/symbol/split/examples/index.js new file mode 100644 index 000000000000..6497ed2174db --- /dev/null +++ b/lib/node_modules/@stdlib/symbol/split/examples/index.js @@ -0,0 +1,39 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; +var defineProperty = require('@stdlib/utils/define-property'); +var SplitSymbol = require('../../lib'); + +function split(str) { + var idx = str.indexOf(this.value); + if (idx === -1) { + return str; + } + return str.substring(0, idx) + '/' + str.substring(idx + this.value.length); +} + +var obj = { value: 'foo' }; + +defineProperty(obj, SplitSymbol, { + 'configurable': true, + 'value': split +}); + +var str = 'foobar'; +console.log(str.split(obj)); diff --git a/lib/node_modules/@stdlib/symbol/split/lib/index.js b/lib/node_modules/@stdlib/symbol/split/lib/index.js new file mode 100644 index 000000000000..d1cda5a7ceda --- /dev/null +++ b/lib/node_modules/@stdlib/symbol/split/lib/index.js @@ -0,0 +1,49 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +/** +* Symbol which provides a method for replacing substrings matched by the current object. +* +* @module @stdlib/symbol/split +* +* @example +* var SplitSymbol = require( '@stdlib/symbol/split' ); +* +* function split(str) { +* var idx = str.indexOf(this.value); +* if (idx === -1) { +* return str; // nothing to split +* } +* return str.substring(0, idx) + '/' + str.substring(idx + this.value.length); +*} +* +* var obj = {}; +* obj[ SplitSymbol ] = split; +* +*/ + +// MAIN // + +var main = require( './main.js' ); + + +// EXPORTS // + +module.exports = main; diff --git a/lib/node_modules/@stdlib/symbol/split/lib/main.js b/lib/node_modules/@stdlib/symbol/split/lib/main.js new file mode 100644 index 000000000000..1b71cf8c543f --- /dev/null +++ b/lib/node_modules/@stdlib/symbol/split/lib/main.js @@ -0,0 +1,52 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var hasSplitSymbolSupport = require( '@stdlib/assert/has-Split-symbol-support' ); + + +// MAIN // + +/** +* Split symbol. +* +* @name SplitSymbol +* @constant +* @type {(symbol|null)} +* +* @example +* function split(str) { +* var idx = str.indexOf(this.value); +* if (idx === -1) { +* return str; // nothing to split +* } +* return str.substring(0, idx) + '/' + str.substring(idx + this.value.length); +*} +* +* var obj = {}; +* obj[ SplitSymbol ] = split; +*/ +var splitSymbol = ( hasSplitSymbolSupport() ) ? Symbol.split : null; + + +// EXPORTS // + +module.exports = splitSymbol; diff --git a/lib/node_modules/@stdlib/symbol/split/package.json b/lib/node_modules/@stdlib/symbol/split/package.json new file mode 100644 index 000000000000..8f545177daaa --- /dev/null +++ b/lib/node_modules/@stdlib/symbol/split/package.json @@ -0,0 +1,58 @@ +{ + "name": "@stdlib/symbol/split", + "version": "0.0.0", + "description": "Split symbol.", + "license": "Apache-2.0", + "author": { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + }, + "contributors": [ + { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + } + ], + "main": "./lib", + "directories": { + "doc": "./docs", + "example": "./examples", + "lib": "./lib", + "test": "./test" + }, + "types": "./docs/types", + "scripts": {}, + "homepage": "https://github.com/stdlib-js/stdlib", + "repository": { + "type": "git", + "url": "git://github.com/stdlib-js/stdlib.git" + }, + "bugs": { + "url": "https://github.com/stdlib-js/stdlib/issues" + }, + "dependencies": {}, + "devDependencies": {}, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "symbol", + "sym", + "split", + "substring", + "string" + ] +} diff --git a/lib/node_modules/@stdlib/symbol/split/test/test.js b/lib/node_modules/@stdlib/symbol/split/test/test.js new file mode 100644 index 000000000000..82ce3cfb49a6 --- /dev/null +++ b/lib/node_modules/@stdlib/symbol/split/test/test.js @@ -0,0 +1,52 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var hasSplitSymbolSupport = require( '@stdlib/assert/has-split-symbol-support' ); +var isSymbol = require( '@stdlib/assert/is-symbol' ); +var Sym = require( './../lib' ); + + +// VARIABLES // + +var opts = { + 'skip': !hasSplitSymbolSupport() +}; + + +// TESTS // + +tape( 'main export is a symbol in supporting environments (ES6/2015+) or otherwise null', function test( t ) { + t.ok( true, __filename ); + if ( opts.skip ) { + t.strictEqual( Sym, null, 'main export is null' ); + } else { + t.strictEqual( typeof Sym, 'symbol', 'main export is a symbol' ); + t.strictEqual( isSymbol( Sym ), true, 'main export is a symbol' ); + } + t.end(); +}); + +tape( 'the main export is an alias for `Symbol.split`', opts, function test( t ) { + t.strictEqual( Sym, Symbol.split, 'returns expected value' ); + t.end(); +}); From ada72e9aec00d0c4b9ee7c38d805be4b7aadadef Mon Sep 17 00:00:00 2001 From: aryan7071 Date: Mon, 24 Nov 2025 23:29:18 +0530 Subject: [PATCH 02/10] origin fixed --- .../@stdlib/symbol/split/README.md | 129 ------------------ .../@stdlib/symbol/split/docs/repl.txt | 17 --- .../symbol/split/docs/types/index.d.ts | 31 ----- .../@stdlib/symbol/split/docs/types/test.ts | 29 ---- .../@stdlib/symbol/split/examples/index.js | 39 ------ .../@stdlib/symbol/split/lib/index.js | 49 ------- .../@stdlib/symbol/split/lib/main.js | 52 ------- .../@stdlib/symbol/split/package.json | 58 -------- .../@stdlib/symbol/split/test/test.js | 52 ------- 9 files changed, 456 deletions(-) delete mode 100644 lib/node_modules/@stdlib/symbol/split/README.md delete mode 100644 lib/node_modules/@stdlib/symbol/split/docs/repl.txt delete mode 100644 lib/node_modules/@stdlib/symbol/split/docs/types/index.d.ts delete mode 100644 lib/node_modules/@stdlib/symbol/split/docs/types/test.ts delete mode 100644 lib/node_modules/@stdlib/symbol/split/examples/index.js delete mode 100644 lib/node_modules/@stdlib/symbol/split/lib/index.js delete mode 100644 lib/node_modules/@stdlib/symbol/split/lib/main.js delete mode 100644 lib/node_modules/@stdlib/symbol/split/package.json delete mode 100644 lib/node_modules/@stdlib/symbol/split/test/test.js diff --git a/lib/node_modules/@stdlib/symbol/split/README.md b/lib/node_modules/@stdlib/symbol/split/README.md deleted file mode 100644 index 7082d87e4729..000000000000 --- a/lib/node_modules/@stdlib/symbol/split/README.md +++ /dev/null @@ -1,129 +0,0 @@ - - -# SplitSymbol - -> [Symbol][mdn-symbol] which provides a method for replacing substrings matched by the current object. - - - -
- -
- - - - - -
- -## Usage - -```javascript -var SplitSymbol = require( '@stdlib/symbol/split' ); -``` - -#### SplitSymbol - -[`symbol`][mdn-symbol] which provides a method for replacing substrings matched by the current object. - -```javascript -var s = typeof SplitSymbol; -// e.g., returns 'symbol' -``` - -
- - - - - -
- -## Notes - -- The [symbol][mdn-symbol] is only supported in environments which support [symbols][mdn-symbol]. In non-supporting environments, the value is `null`. - - -
- - - - - -
- -## Examples - - - -```javascript -var defineProperty = require( '@stdlib/utils/define-property' ); -var SplitSymbol = require( '@stdlib/symbol/split' ); - -function split(str) { - var idx = str.indexOf(this.value); - if (idx === -1) { - return str; - } - return str.substring(0, idx) + '/' + str.substring(idx + this.value.length); -} - -var obj = { value: 'foo' }; - -defineProperty(obj, SplitSymbol, { - 'configurable': true, - 'value': split -}); - -var str = 'foobar'; -console.log(str.split(obj)); - -``` - -
- - - - - -
- -
- - - - - - - - - - - - - - diff --git a/lib/node_modules/@stdlib/symbol/split/docs/repl.txt b/lib/node_modules/@stdlib/symbol/split/docs/repl.txt deleted file mode 100644 index 42c84a7d14de..000000000000 --- a/lib/node_modules/@stdlib/symbol/split/docs/repl.txt +++ /dev/null @@ -1,17 +0,0 @@ - -{{alias}} - Split symbol. - - This symbol provides a method for splitting substrings matched by the current object. - - The symbol is only supported in ES6/ES2015+ environments. For non-supporting - environments, the value is `null`. - - Examples - -------- - > var s = {{alias}} - e.g., - - See Also - -------- - diff --git a/lib/node_modules/@stdlib/symbol/split/docs/types/index.d.ts b/lib/node_modules/@stdlib/symbol/split/docs/types/index.d.ts deleted file mode 100644 index 80d2153f76df..000000000000 --- a/lib/node_modules/@stdlib/symbol/split/docs/types/index.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2025 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -// EXPORTS // - -/** -* Split symbol. -* -* ## Notes -* -* - This symbol provides a method for splitting substrings matched by the current object. -* - The symbol is only supported in ES6/ES2015+ environments. For non-supporting environments, the value is `null`. -*/ -export = Symbol.split; diff --git a/lib/node_modules/@stdlib/symbol/split/docs/types/test.ts b/lib/node_modules/@stdlib/symbol/split/docs/types/test.ts deleted file mode 100644 index 8ecb7854fa4f..000000000000 --- a/lib/node_modules/@stdlib/symbol/split/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2025 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import SplitSymbol = require( './index' ); - - -// TESTS // - -// The exported value is the `split` symbol... -{ - SplitSymbol; -} diff --git a/lib/node_modules/@stdlib/symbol/split/examples/index.js b/lib/node_modules/@stdlib/symbol/split/examples/index.js deleted file mode 100644 index 6497ed2174db..000000000000 --- a/lib/node_modules/@stdlib/symbol/split/examples/index.js +++ /dev/null @@ -1,39 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2025 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; -var defineProperty = require('@stdlib/utils/define-property'); -var SplitSymbol = require('../../lib'); - -function split(str) { - var idx = str.indexOf(this.value); - if (idx === -1) { - return str; - } - return str.substring(0, idx) + '/' + str.substring(idx + this.value.length); -} - -var obj = { value: 'foo' }; - -defineProperty(obj, SplitSymbol, { - 'configurable': true, - 'value': split -}); - -var str = 'foobar'; -console.log(str.split(obj)); diff --git a/lib/node_modules/@stdlib/symbol/split/lib/index.js b/lib/node_modules/@stdlib/symbol/split/lib/index.js deleted file mode 100644 index d1cda5a7ceda..000000000000 --- a/lib/node_modules/@stdlib/symbol/split/lib/index.js +++ /dev/null @@ -1,49 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2025 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/** -* Symbol which provides a method for replacing substrings matched by the current object. -* -* @module @stdlib/symbol/split -* -* @example -* var SplitSymbol = require( '@stdlib/symbol/split' ); -* -* function split(str) { -* var idx = str.indexOf(this.value); -* if (idx === -1) { -* return str; // nothing to split -* } -* return str.substring(0, idx) + '/' + str.substring(idx + this.value.length); -*} -* -* var obj = {}; -* obj[ SplitSymbol ] = split; -* -*/ - -// MAIN // - -var main = require( './main.js' ); - - -// EXPORTS // - -module.exports = main; diff --git a/lib/node_modules/@stdlib/symbol/split/lib/main.js b/lib/node_modules/@stdlib/symbol/split/lib/main.js deleted file mode 100644 index 1b71cf8c543f..000000000000 --- a/lib/node_modules/@stdlib/symbol/split/lib/main.js +++ /dev/null @@ -1,52 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2025 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var hasSplitSymbolSupport = require( '@stdlib/assert/has-Split-symbol-support' ); - - -// MAIN // - -/** -* Split symbol. -* -* @name SplitSymbol -* @constant -* @type {(symbol|null)} -* -* @example -* function split(str) { -* var idx = str.indexOf(this.value); -* if (idx === -1) { -* return str; // nothing to split -* } -* return str.substring(0, idx) + '/' + str.substring(idx + this.value.length); -*} -* -* var obj = {}; -* obj[ SplitSymbol ] = split; -*/ -var splitSymbol = ( hasSplitSymbolSupport() ) ? Symbol.split : null; - - -// EXPORTS // - -module.exports = splitSymbol; diff --git a/lib/node_modules/@stdlib/symbol/split/package.json b/lib/node_modules/@stdlib/symbol/split/package.json deleted file mode 100644 index 8f545177daaa..000000000000 --- a/lib/node_modules/@stdlib/symbol/split/package.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "name": "@stdlib/symbol/split", - "version": "0.0.0", - "description": "Split symbol.", - "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": {}, - "homepage": "https://github.com/stdlib-js/stdlib", - "repository": { - "type": "git", - "url": "git://github.com/stdlib-js/stdlib.git" - }, - "bugs": { - "url": "https://github.com/stdlib-js/stdlib/issues" - }, - "dependencies": {}, - "devDependencies": {}, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], - "keywords": [ - "stdlib", - "symbol", - "sym", - "split", - "substring", - "string" - ] -} diff --git a/lib/node_modules/@stdlib/symbol/split/test/test.js b/lib/node_modules/@stdlib/symbol/split/test/test.js deleted file mode 100644 index 82ce3cfb49a6..000000000000 --- a/lib/node_modules/@stdlib/symbol/split/test/test.js +++ /dev/null @@ -1,52 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2025 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var hasSplitSymbolSupport = require( '@stdlib/assert/has-split-symbol-support' ); -var isSymbol = require( '@stdlib/assert/is-symbol' ); -var Sym = require( './../lib' ); - - -// VARIABLES // - -var opts = { - 'skip': !hasSplitSymbolSupport() -}; - - -// TESTS // - -tape( 'main export is a symbol in supporting environments (ES6/2015+) or otherwise null', function test( t ) { - t.ok( true, __filename ); - if ( opts.skip ) { - t.strictEqual( Sym, null, 'main export is null' ); - } else { - t.strictEqual( typeof Sym, 'symbol', 'main export is a symbol' ); - t.strictEqual( isSymbol( Sym ), true, 'main export is a symbol' ); - } - t.end(); -}); - -tape( 'the main export is an alias for `Symbol.split`', opts, function test( t ) { - t.strictEqual( Sym, Symbol.split, 'returns expected value' ); - t.end(); -}); From a9e9096787f8fdfd2380bbcc29807dca40ca9d31 Mon Sep 17 00:00:00 2001 From: aryan7071 Date: Sun, 30 Nov 2025 22:49:41 +0530 Subject: [PATCH 03/10] docs: improve doctests for complex number instances in complex/base/cast-return --- .../complex/base/cast-return/README.md | 12 +--- .../complex/base/cast-return/docs/repl.txt | 6 +- .../base/cast-return/docs/types/index.d.ts | 63 +++---------------- .../base/cast-return/examples/index.js | 13 +--- .../complex/base/cast-return/lib/index.js | 10 +-- .../complex/base/cast-return/lib/main.js | 9 +-- 6 files changed, 16 insertions(+), 97 deletions(-) diff --git a/lib/node_modules/@stdlib/complex/base/cast-return/README.md b/lib/node_modules/@stdlib/complex/base/cast-return/README.md index 852e0a745572..916474a9df84 100644 --- a/lib/node_modules/@stdlib/complex/base/cast-return/README.md +++ b/lib/node_modules/@stdlib/complex/base/cast-return/README.md @@ -86,8 +86,6 @@ The function accepts the following arguments: ```javascript var Complex64 = require( '@stdlib/complex/float32/ctor' ); var addf = require( '@stdlib/number/float32/base/add' ); -var realf = require( '@stdlib/complex/float32/real' ); -var imagf = require( '@stdlib/complex/float32/imag' ); var castReturn = require( '@stdlib/complex/base/cast-return' ); var f = castReturn( addf, 2, Complex64 ); @@ -95,15 +93,9 @@ var f = castReturn( addf, 2, Complex64 ); // ... var z = f( 3.0, 4.0 ); -// returns +// returns [ 7.0, 0.0 ] -var re = realf( z ); -// returns 7.0 - -var im = imagf( z ); -// returns 0.0 - -console.log( '%d + %di', re, im ); +console.log( z.toString() ); // => '7 + 0i' ``` diff --git a/lib/node_modules/@stdlib/complex/base/cast-return/docs/repl.txt b/lib/node_modules/@stdlib/complex/base/cast-return/docs/repl.txt index 8238bfa5c1ed..6b6fee20c63b 100644 --- a/lib/node_modules/@stdlib/complex/base/cast-return/docs/repl.txt +++ b/lib/node_modules/@stdlib/complex/base/cast-return/docs/repl.txt @@ -34,11 +34,7 @@ -------- > var f = {{alias}}( {{alias:@stdlib/number/float32/base/add}}, 2, {{alias:@stdlib/complex/float32/ctor}} ); > var z = f( 3.0, 4.0 ) - - > var re = {{alias:@stdlib/complex/float32/real}}( z ) - 7.0 - > var im = {{alias:@stdlib/complex/float32/imag}}( z ) - 0.0 + [ 7.0, 0.0 ] See Also -------- diff --git a/lib/node_modules/@stdlib/complex/base/cast-return/docs/types/index.d.ts b/lib/node_modules/@stdlib/complex/base/cast-return/docs/types/index.d.ts index ae13493820ad..ed0f59d12826 100644 --- a/lib/node_modules/@stdlib/complex/base/cast-return/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/complex/base/cast-return/docs/types/index.d.ts @@ -187,8 +187,6 @@ type Constructor = new( re: number, im: number ) => ComplexLike; * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/float32/real' ); -* var imagf = require( '@stdlib/complex/float32/imag' ); * var randu = require( '@stdlib/random/base/randu' ); * * var f = wrap( randu, 0, Complex64 ); @@ -198,11 +196,6 @@ type Constructor = new( re: number, im: number ) => ComplexLike; * var z = f(); * // returns * -* var re = realf( z ); -* // returns -* -* var im = imagf( z ); -* // returns */ declare function wrap( fcn: Nullary, nargs: 0, ctor: Constructor ): WrappedNullary; @@ -223,21 +216,14 @@ declare function wrap( fcn: Nullary, nargs: 0, ctor: Constructor ): WrappedNulla * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); * var identityf = require( '@stdlib/number/float32/base/identity' ); -* var realf = require( '@stdlib/complex/float32/real' ); -* var imagf = require( '@stdlib/complex/float32/imag' ); * * var f = wrap( identityf, 1, Complex64 ); * * // ... * * var z = f( 3.0 ); -* // returns +* // returns [ 3.0, 0.0 ] * -* var re = realf( z ); -* // returns 3.0 -* -* var im = imagf( z ); -* // returns 0.0 */ declare function wrap( fcn: Unary, nargs: 1, ctor: Constructor ): WrappedUnary; @@ -258,21 +244,14 @@ declare function wrap( fcn: Unary, nargs: 1, ctor: Constructor ): WrappedUnary; * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); * var addf = require( '@stdlib/number/float32/base/add' ); -* var realf = require( '@stdlib/complex/float32/real' ); -* var imagf = require( '@stdlib/complex/float32/imag' ); * * var f = wrap( addf, 2, Complex64 ); * * // ... * * var z = f( 3.0, 4.0 ); -* // returns +* // returns [ 7.0, 0.0 ] * -* var re = realf( z ); -* // returns 7.0 -* -* var im = imagf( z ); -* // returns 0.0 */ declare function wrap( fcn: Binary, nargs: 2, ctor: Constructor ): WrappedBinary; @@ -292,8 +271,6 @@ declare function wrap( fcn: Binary, nargs: 2, ctor: Constructor ): WrappedBinary * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/float32/real' ); -* var imagf = require( '@stdlib/complex/float32/imag' ); * * function add( x, y, z ) { * return x + y + z; @@ -304,13 +281,8 @@ declare function wrap( fcn: Binary, nargs: 2, ctor: Constructor ): WrappedBinary * // ... * * var z = f( 3.0, 4.0, 5.0 ); -* // returns -* -* var re = realf( z ); -* // returns 12.0 +* // returns [ 12.0, 0.0 ] * -* var im = imagf( z ); -* // returns 0.0 */ declare function wrap( fcn: Ternary, nargs: 3, ctor: Constructor ): WrappedTernary; @@ -330,8 +302,6 @@ declare function wrap( fcn: Ternary, nargs: 3, ctor: Constructor ): WrappedTerna * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/float32/real' ); -* var imagf = require( '@stdlib/complex/float32/imag' ); * * function add( x, y, z, w ) { * return x + y + z + w; @@ -342,13 +312,8 @@ declare function wrap( fcn: Ternary, nargs: 3, ctor: Constructor ): WrappedTerna * // ... * * var z = f( 3.0, 4.0, 5.0, 6.0 ); -* // returns -* -* var re = realf( z ); -* // returns 18.0 +* // returns [ 18.0, 0.0] * -* var im = imagf( z ); -* // returns 0.0 */ declare function wrap( fcn: Quaternary, nargs: 4, ctor: Constructor ): WrappedQuaternary; @@ -368,8 +333,6 @@ declare function wrap( fcn: Quaternary, nargs: 4, ctor: Constructor ): WrappedQu * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/float32/real' ); -* var imagf = require( '@stdlib/complex/float32/imag' ); * * function add( x, y, z, w, v ) { * return x + y + z + w + v; @@ -380,13 +343,8 @@ declare function wrap( fcn: Quaternary, nargs: 4, ctor: Constructor ): WrappedQu * // ... * * var z = f( 3.0, 4.0, 5.0, 6.0, 7.0 ); -* // returns -* -* var re = realf( z ); -* // returns 25.0 +* // returns [ 25.0, 0.0] * -* var im = imagf( z ); -* // returns 0.0 */ declare function wrap( fcn: Quinary, nargs: 5, ctor: Constructor ): WrappedQuinary; @@ -406,9 +364,7 @@ declare function wrap( fcn: Quinary, nargs: 5, ctor: Constructor ): WrappedQuina * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/float32/real' ); -* var imagf = require( '@stdlib/complex/float32/imag' ); -* +* * function add( x, y, z, w, v, t ) { * return x + y + z + w + v + t; * } @@ -418,13 +374,8 @@ declare function wrap( fcn: Quinary, nargs: 5, ctor: Constructor ): WrappedQuina * // ... * * var z = f( 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ); -* // returns -* -* var re = realf( z ); -* // returns 33.0 +* // returns [ 33.0, 0.0 ] * -* var im = imagf( z ); -* // returns 0.0 */ declare function wrap( fcn: Nary, nargs: number, ctor: Constructor ): WrappedNary; diff --git a/lib/node_modules/@stdlib/complex/base/cast-return/examples/index.js b/lib/node_modules/@stdlib/complex/base/cast-return/examples/index.js index e7a65966ade6..7d97caecda73 100644 --- a/lib/node_modules/@stdlib/complex/base/cast-return/examples/index.js +++ b/lib/node_modules/@stdlib/complex/base/cast-return/examples/index.js @@ -20,8 +20,6 @@ var Complex64 = require( '@stdlib/complex/float32/ctor' ); var addf = require( '@stdlib/number/float32/base/add' ); -var realf = require( '@stdlib/complex/float32/real' ); -var imagf = require( '@stdlib/complex/float32/imag' ); var castReturn = require( './../lib' ); var f = castReturn( addf, 2, Complex64 ); @@ -29,13 +27,8 @@ var f = castReturn( addf, 2, Complex64 ); // ... var z = f( 3.0, 4.0 ); -// returns +// returns [ 7.0, 0.0] -var re = realf( z ); -// returns 7.0 -var im = imagf( z ); -// returns 0.0 - -console.log( '%d + %di', re, im ); -// => '7 + 0i' +console.log( z.toString() ); +// => '7 + 0i' diff --git a/lib/node_modules/@stdlib/complex/base/cast-return/lib/index.js b/lib/node_modules/@stdlib/complex/base/cast-return/lib/index.js index 04ec71ee41a2..1b8ea2f07c2f 100644 --- a/lib/node_modules/@stdlib/complex/base/cast-return/lib/index.js +++ b/lib/node_modules/@stdlib/complex/base/cast-return/lib/index.js @@ -26,8 +26,6 @@ * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); * var addf = require( '@stdlib/number/float32/base/add' ); -* var realf = require( '@stdlib/complex/float32/real' ); -* var imagf = require( '@stdlib/complex/float32/imag' ); * var castReturn = require( '@stdlib/complex/base/cast-return' ); * * var f = castReturn( addf, 2, Complex64 ); @@ -35,13 +33,9 @@ * // ... * * var z = f( 3.0, 4.0 ); -* // returns +* // returns [ 7.0, 0.0 ] * -* var re = realf( z ); -* // returns 7.0 -* -* var im = imagf( z ); -* // returns 0.0 +* */ // MODULES // diff --git a/lib/node_modules/@stdlib/complex/base/cast-return/lib/main.js b/lib/node_modules/@stdlib/complex/base/cast-return/lib/main.js index e0c38a0bc3bb..5df2d02d1633 100644 --- a/lib/node_modules/@stdlib/complex/base/cast-return/lib/main.js +++ b/lib/node_modules/@stdlib/complex/base/cast-return/lib/main.js @@ -53,21 +53,14 @@ var T = 'number'; * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); * var addf = require( '@stdlib/number/float32/base/add' ); -* var realf = require( '@stdlib/complex/float32/real' ); -* var imagf = require( '@stdlib/complex/float32/imag' ); * * var f = wrap( addf, 2, Complex64 ); * * // ... * * var z = f( 3.0, 4.0 ); -* // returns +* // returns [ 7.0, 0.0 ] * -* var re = realf( z ); -* // returns 7.0 -* -* var im = imagf( z ); -* // returns 0.0 */ function wrap( fcn, nargs, ctor ) { var fcns; From 8b9c07a33174edcb27b3448f3e472cbc83a2ddb8 Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 1 Dec 2025 02:49:10 -0800 Subject: [PATCH 04/10] Apply suggestions from code review Signed-off-by: Athan --- .../base/cast-return/docs/types/index.d.ts | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/lib/node_modules/@stdlib/complex/base/cast-return/docs/types/index.d.ts b/lib/node_modules/@stdlib/complex/base/cast-return/docs/types/index.d.ts index ed0f59d12826..7acc04d5582f 100644 --- a/lib/node_modules/@stdlib/complex/base/cast-return/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/complex/base/cast-return/docs/types/index.d.ts @@ -194,8 +194,7 @@ type Constructor = new( re: number, im: number ) => ComplexLike; * // ... * * var z = f(); -* // returns -* +* // e.g., returns [ , ] */ declare function wrap( fcn: Nullary, nargs: 0, ctor: Constructor ): WrappedNullary; @@ -223,7 +222,6 @@ declare function wrap( fcn: Nullary, nargs: 0, ctor: Constructor ): WrappedNulla * * var z = f( 3.0 ); * // returns [ 3.0, 0.0 ] -* */ declare function wrap( fcn: Unary, nargs: 1, ctor: Constructor ): WrappedUnary; @@ -251,7 +249,6 @@ declare function wrap( fcn: Unary, nargs: 1, ctor: Constructor ): WrappedUnary; * * var z = f( 3.0, 4.0 ); * // returns [ 7.0, 0.0 ] -* */ declare function wrap( fcn: Binary, nargs: 2, ctor: Constructor ): WrappedBinary; @@ -282,7 +279,6 @@ declare function wrap( fcn: Binary, nargs: 2, ctor: Constructor ): WrappedBinary * * var z = f( 3.0, 4.0, 5.0 ); * // returns [ 12.0, 0.0 ] -* */ declare function wrap( fcn: Ternary, nargs: 3, ctor: Constructor ): WrappedTernary; @@ -312,8 +308,7 @@ declare function wrap( fcn: Ternary, nargs: 3, ctor: Constructor ): WrappedTerna * // ... * * var z = f( 3.0, 4.0, 5.0, 6.0 ); -* // returns [ 18.0, 0.0] -* +* // returns [ 18.0, 0.0 ] */ declare function wrap( fcn: Quaternary, nargs: 4, ctor: Constructor ): WrappedQuaternary; @@ -343,8 +338,7 @@ declare function wrap( fcn: Quaternary, nargs: 4, ctor: Constructor ): WrappedQu * // ... * * var z = f( 3.0, 4.0, 5.0, 6.0, 7.0 ); -* // returns [ 25.0, 0.0] -* +* // returns [ 25.0, 0.0 ] */ declare function wrap( fcn: Quinary, nargs: 5, ctor: Constructor ): WrappedQuinary; @@ -364,7 +358,7 @@ declare function wrap( fcn: Quinary, nargs: 5, ctor: Constructor ): WrappedQuina * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* +* * function add( x, y, z, w, v, t ) { * return x + y + z + w + v + t; * } @@ -375,7 +369,6 @@ declare function wrap( fcn: Quinary, nargs: 5, ctor: Constructor ): WrappedQuina * * var z = f( 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ); * // returns [ 33.0, 0.0 ] -* */ declare function wrap( fcn: Nary, nargs: number, ctor: Constructor ): WrappedNary; From f8d2c8f871d4a0068a22f46076e2fa8e6a15269e Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 1 Dec 2025 02:50:28 -0800 Subject: [PATCH 05/10] style: fix missing space Signed-off-by: Athan --- .../@stdlib/complex/base/cast-return/examples/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/complex/base/cast-return/examples/index.js b/lib/node_modules/@stdlib/complex/base/cast-return/examples/index.js index 7d97caecda73..a38e9c564745 100644 --- a/lib/node_modules/@stdlib/complex/base/cast-return/examples/index.js +++ b/lib/node_modules/@stdlib/complex/base/cast-return/examples/index.js @@ -27,7 +27,7 @@ var f = castReturn( addf, 2, Complex64 ); // ... var z = f( 3.0, 4.0 ); -// returns [ 7.0, 0.0] +// returns [ 7.0, 0.0 ] console.log( z.toString() ); From b9a08344b06ccbe04dc003fc24e80a0469d87df8 Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 1 Dec 2025 02:50:54 -0800 Subject: [PATCH 06/10] style: remove empty line Signed-off-by: Athan --- lib/node_modules/@stdlib/complex/base/cast-return/lib/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/node_modules/@stdlib/complex/base/cast-return/lib/index.js b/lib/node_modules/@stdlib/complex/base/cast-return/lib/index.js index 1b8ea2f07c2f..e999b250c1c1 100644 --- a/lib/node_modules/@stdlib/complex/base/cast-return/lib/index.js +++ b/lib/node_modules/@stdlib/complex/base/cast-return/lib/index.js @@ -35,7 +35,6 @@ * var z = f( 3.0, 4.0 ); * // returns [ 7.0, 0.0 ] * -* */ // MODULES // From 95adde76c53f23e60934f0d1a8e1f4ebd3568ba8 Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 1 Dec 2025 02:51:13 -0800 Subject: [PATCH 07/10] style: remove empty line Signed-off-by: Athan --- lib/node_modules/@stdlib/complex/base/cast-return/lib/main.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/node_modules/@stdlib/complex/base/cast-return/lib/main.js b/lib/node_modules/@stdlib/complex/base/cast-return/lib/main.js index 5df2d02d1633..711cb62f4980 100644 --- a/lib/node_modules/@stdlib/complex/base/cast-return/lib/main.js +++ b/lib/node_modules/@stdlib/complex/base/cast-return/lib/main.js @@ -60,7 +60,6 @@ var T = 'number'; * * var z = f( 3.0, 4.0 ); * // returns [ 7.0, 0.0 ] -* */ function wrap( fcn, nargs, ctor ) { var fcns; From 541230b0029fdb6db77a05821aa47aae790b8fd7 Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 1 Dec 2025 02:51:39 -0800 Subject: [PATCH 08/10] style: remove empty line Signed-off-by: Athan --- lib/node_modules/@stdlib/complex/base/cast-return/lib/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/node_modules/@stdlib/complex/base/cast-return/lib/index.js b/lib/node_modules/@stdlib/complex/base/cast-return/lib/index.js index e999b250c1c1..26d80e3221b1 100644 --- a/lib/node_modules/@stdlib/complex/base/cast-return/lib/index.js +++ b/lib/node_modules/@stdlib/complex/base/cast-return/lib/index.js @@ -34,7 +34,6 @@ * * var z = f( 3.0, 4.0 ); * // returns [ 7.0, 0.0 ] -* */ // MODULES // From 571828bd03269dc2c738f6ddab4a5982305ecef9 Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 1 Dec 2025 02:52:10 -0800 Subject: [PATCH 09/10] style: remove whitespace Signed-off-by: Athan --- .../@stdlib/complex/base/cast-return/examples/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/complex/base/cast-return/examples/index.js b/lib/node_modules/@stdlib/complex/base/cast-return/examples/index.js index a38e9c564745..f720c0d1e12a 100644 --- a/lib/node_modules/@stdlib/complex/base/cast-return/examples/index.js +++ b/lib/node_modules/@stdlib/complex/base/cast-return/examples/index.js @@ -31,4 +31,4 @@ var z = f( 3.0, 4.0 ); console.log( z.toString() ); -// => '7 + 0i' +// => '7 + 0i' From c94b0c907d99816191a81b00c878479d958e8b9a Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 1 Dec 2025 02:59:28 -0800 Subject: [PATCH 10/10] style: remove empty line Signed-off-by: Athan --- .../@stdlib/complex/base/cast-return/examples/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/node_modules/@stdlib/complex/base/cast-return/examples/index.js b/lib/node_modules/@stdlib/complex/base/cast-return/examples/index.js index f720c0d1e12a..308f6d65120c 100644 --- a/lib/node_modules/@stdlib/complex/base/cast-return/examples/index.js +++ b/lib/node_modules/@stdlib/complex/base/cast-return/examples/index.js @@ -29,6 +29,5 @@ var f = castReturn( addf, 2, Complex64 ); var z = f( 3.0, 4.0 ); // returns [ 7.0, 0.0 ] - console.log( z.toString() ); // => '7 + 0i'