Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Dec 31, 2023
1 parent ade35f6 commit bdd5240
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 10 deletions.
1 change: 1 addition & 0 deletions code-blocks/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3642,6 +3642,7 @@ maskArguments,"function foo( a, b ) { return [ a, b ]; };\nvar bar = maskArgumen
MAX_ARRAY_LENGTH,"MAX_ARRAY_LENGTH\n"
MAX_TYPED_ARRAY_LENGTH,"MAX_TYPED_ARRAY_LENGTH\n"
maybeBroadcastArray,"var x = array( [ [ 1, 2 ], [ 3, 4 ] ] )\nvar sh = x.shape\nvar y = maybeBroadcastArray( x, [ 3, 2, 2 ] )\nsh = y.shape\nvar v = y.get( 0, 0, 0 )\nv = y.get( 0, 0, 1 )\nv = y.get( 0, 1, 0 )\nv = y.get( 0, 1, 1 )\nv = y.get( 1, 0, 0 )\nv = y.get( 1, 1, 0 )\nv = y.get( 2, 0, 0 )\nv = y.get( 2, 1, 1 )\n"
maybeBroadcastArrays,"var x = array( [ [ 1, 2 ], [ 3, 4 ] ] )\nvar sh = x.shape\nvar y = ndzeros( [ 3, 2, 2 ] )\nvar out = maybeBroadcastArrays( [ x, y ] )\nvar bx = out[ 0 ]\nsh = bx.shape\nvar v = bx.get( 0, 0, 0 )\nv = bx.get( 0, 0, 1 )\nv = bx.get( 0, 1, 0 )\nv = bx.get( 0, 1, 1 )\nv = bx.get( 1, 0, 0 )\nv = bx.get( 1, 1, 0 )\nv = bx.get( 2, 0, 0 )\nv = bx.get( 2, 1, 1 )\n"
memoize,"function factorial( n ) {\n var prod;\n var i;\n prod = 1;\n for ( i = n; i > 1; i-- ) {\n prod *= i;\n }\n return prod;\n };\nvar memoized = memoize( factorial );\nvar v = memoized( 5 )\nv = memoized( 5 )\n"
merge,"var target = { 'a': 'beep' };\nvar source = { 'a': 'boop', 'b': 'bap' };\nvar out = merge( target, source )\nvar bool = ( out === target )\n"
merge.factory,"var opts = {\n 'level': 100,\n 'copy': true,\n 'override': true,\n 'extend': true\n };\nvar merge = merge.factory( opts )\nmerge = merge.factory( { 'level': 2 } );\nvar target = {\n '1': { 'a': 'beep', '2': { '3': null, 'b': [ 5, 6, 7 ] } }\n };\nvar source = {\n '1': { 'b': 'boop', '2': { '3': [ 1, 2, 3 ] } }\n };\nvar out = merge( target, source )\nmerge = merge.factory( { 'copy': false } );\ntarget = {};\nsource = { 'a': [ 1, 2, 3 ] };\nout = merge( target, source );\nvar bool = ( out.a === source.a )\nmerge = merge.factory( { 'override': false } );\ntarget = { 'a': 'beep', 'b': 'boop' };\nsource = { 'a': null, 'c': 'bop' };\nout = merge( target, source )\nfunction strategy( a, b, key ) {\n // a => target value\n // b => source value\n // key => object key\n if ( key === 'a' ) {\n return b;\n }\n if ( key === 'b' ) {\n return a;\n }\n return 'bebop';\n };\nmerge = merge.factory( { 'override': strategy } );\ntarget = { 'a': 'beep', 'b': 'boop', 'c': 1234 };\nsource = { 'a': null, 'b': {}, 'c': 'bop' };\nout = merge( target, source )\nmerge = merge.factory( { 'extend': false } );\ntarget = { 'a': 'beep', 'b': 'boop' };\nsource = { 'b': 'hello', 'c': 'world' };\nout = merge( target, source )\n"
Expand Down
2 changes: 1 addition & 1 deletion code-blocks/data/data.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/index.js.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions help/data/data.csv

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion help/data/data.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions info/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3642,6 +3642,7 @@ maskArguments,"\nmaskArguments( fcn:Function, mask:ArrayLikeObject[, thisArg:any
MAX_ARRAY_LENGTH,"\nMAX_ARRAY_LENGTH\n Maximum length for a generic array.\n"
MAX_TYPED_ARRAY_LENGTH,"\nMAX_TYPED_ARRAY_LENGTH\n Maximum length for a typed array.\n"
maybeBroadcastArray,"\nmaybeBroadcastArray( x:ndarray, shape:ArrayLikeObject )\n Broadcasts an ndarray to a specified shape if and only if the specified\n shape differs from the provided ndarray's shape.\n"
maybeBroadcastArrays,"\nmaybeBroadcastArrays( ...arrays:ndarray|ArrayLikeObject<ndarray> )\n Broadcasts ndarrays to a common shape.\n"
memoize,"\nmemoize( fcn:Function[, hashFunction:Function] )\n Returns a memoized function.\n"
merge,"\nmerge( target:Object, ...source:Object )\n Merges objects into a target object.\n"
merge.factory,"\nmerge.factory( options:Object )\n Returns a function for merging and extending objects.\n"
Expand Down
2 changes: 1 addition & 1 deletion info/data/data.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions signature/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3679,6 +3679,7 @@ maskArguments,"maskArguments( fcn, mask[, thisArg] )"
MAX_ARRAY_LENGTH,"MAX_ARRAY_LENGTH"
MAX_TYPED_ARRAY_LENGTH,"MAX_TYPED_ARRAY_LENGTH"
maybeBroadcastArray,"maybeBroadcastArray( x, shape )"
maybeBroadcastArrays,"maybeBroadcastArrays( ...arrays )"
memoize,"memoize( fcn[, hashFunction] )"
merge,"merge( target, ...source )"
merge.factory,"merge.factory( options )"
Expand Down
2 changes: 1 addition & 1 deletion signature/data/data.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions typed-signature/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3679,6 +3679,7 @@ maskArguments,"maskArguments( fcn:Function, mask:ArrayLikeObject[, thisArg:any]
MAX_ARRAY_LENGTH,"MAX_ARRAY_LENGTH"
MAX_TYPED_ARRAY_LENGTH,"MAX_TYPED_ARRAY_LENGTH"
maybeBroadcastArray,"maybeBroadcastArray( x:ndarray, shape:ArrayLikeObject )"
maybeBroadcastArrays,"maybeBroadcastArrays( ...arrays:ndarray|ArrayLikeObject<ndarray> )"
memoize,"memoize( fcn:Function[, hashFunction:Function] )"
merge,"merge( target:Object, ...source:Object )"
merge.factory,"merge.factory( options:Object )"
Expand Down
2 changes: 1 addition & 1 deletion typed-signature/data/data.json

Large diffs are not rendered by default.

0 comments on commit bdd5240

Please sign in to comment.