File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
lib/node_modules/@stdlib/utils/async/map-values/lib Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ var limit = require( './limit.js' );
5050* @returns {Function } function which maps values from one object to a new object having the same keys
5151*
5252* @example
53+ * var join = require( 'path' ).join;
5354* var stat = require( 'fs' ).stat;
5455*
5556* function getStats( file, next ) {
@@ -72,8 +73,8 @@ var limit = require( './limit.js' );
7273*
7374* // Create a dictionary of file names:
7475* var files = {
75- * 'file1': './beep.js' ,
76- * 'file2': './boop.js'
76+ * 'file1': join( __dirname, '..', 'README.md' ) ,
77+ * 'file2': join( __dirname, '..', 'package.json' )
7778* };
7879*
7980* // Define a callback which handles errors:
Original file line number Diff line number Diff line change 2525*
2626* @example
2727* var stat = require( 'fs' ).stat;
28+ * var join = require( 'path' ).join;
2829* var mapValuesAsync = require( '@stdlib/utils/async/map-values' );
2930*
3031* function getStats( file, next ) {
4849*
4950* // Create a dictionary of file names:
5051* var files = {
51- * 'file1': './beep.js' ,
52- * 'file2': './boop.js'
52+ * 'file1': join( __dirname, '..', 'README.md' ) ,
53+ * 'file2': join( __dirname, '..', 'package.json' )
5354* };
5455*
5556* var opts = {
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ var factory = require( './factory.js' );
5050* @returns {void }
5151*
5252* @example
53+ * var join = require( 'path' ).join;
5354* var stat = require( 'fs' ).stat;
5455*
5556* function getStats( file, next ) {
@@ -73,8 +74,8 @@ var factory = require( './factory.js' );
7374*
7475* // Create a dictionary of file names:
7576* var files = {
76- * 'file1': './beep.js' ,
77- * 'file2': './boop.js'
77+ * 'file1': join( __dirname, '..', 'README.md' ) ,
78+ * 'file2': join( __dirname, '..', 'package.json' )
7879* };
7980*
8081* var opts = {
You can’t perform that action at this time.
0 commit comments