<commit_before>'use strict';

// MODULES //

var debug = require( 'debug' )( 'rug:accessor:is-defined' );
var isnan = require( '@stdlib/assert/is-nan' ).isPrimitive;


// MAIN //

/**
* Accessor function which returns a boolean indicating whether a datum is defined.
*
* @private
* @param {number} d - datum
* @returns {boolean} boolean indicating whether a datum is defined
*/
function isDefined( d ) {
	var bool = !isnan( d );
	debug( 'Datum: %s. Defined: %s.', JSON.stringify( d ), bool );
	return bool;
} // end FUNCTION isDefined()


// EXPORTS //

module.exports = isDefined;
<commit_msg>Add param annotation<commit_after>'use strict';

// MODULES //

var debug = require( 'debug' )( 'rug:accessor:is-defined' );
var isnan = require( '@stdlib/assert/is-nan' ).isPrimitive;


// MAIN //

/**
* Accessor function which returns a boolean indicating whether a datum is defined.
*
* @private
* @param {number} d - datum
* @param {integer} i - index
* @returns {boolean} boolean indicating whether a datum is defined
*/
function isDefined( d ) {
	var bool = !isnan( d );
	debug( 'Datum: %s. Defined: %s.', JSON.stringify( d ), bool );
	return bool;
} // end FUNCTION isDefined()


// EXPORTS //

module.exports = isDefined;

{'fraction_non_alphanumeric': 0.1576797385620915, 'fraction_numerical': 0.0, 'mean_word_length': 3.6052631578947367, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6746259', 'n_tokens_mistral': 414, 'n_tokens_neox': 412, 'n_words': 132}