<commit_before>'use strict';

// MODULES //

var isFunction = require( '@stdlib/assert/is-function' );
var RE_NATIVE_FUNCTION = require( '@stdlib/regexp/native-function' );


// FUNCTIONS //

// Using `Function#toString` bypasses a value's own `toString` method to provide an extra, but not security proof, precaution to prevent a provided function from impersonating a native function:
var fcn2str = Function.prototype.toString;


// MAIN //

/**
* Tests if a value is a native function.
*
* @param {*} value - value to test
* @returns {boolean} boolean indicating whether value is a native function
*
* @example
* function beep() {
*     console.log( 'boop' );
* }
*
* var bool = isNativeFunction( beep );
* // returns false
*
* bool = isNativeFunction( Date );
* // returns true

*/
function isNativeFunction( value ) {
	return (
		isFunction( value ) &&
		RE_NATIVE_FUNCTION.test( fcn2str.call( value ) )
	);
} // end FUNCTION isNativeFunction()


// EXPORTS //

module.exports = isNativeFunction;
<commit_msg>Remove empty line<commit_after>'use strict';

// MODULES //

var isFunction = require( '@stdlib/assert/is-function' );
var RE_NATIVE_FUNCTION = require( '@stdlib/regexp/native-function' );


// FUNCTIONS //

// Using `Function#toString` bypasses a value's own `toString` method to provide an extra, but not security proof, precaution to prevent a provided function from impersonating a native function:
var fcn2str = Function.prototype.toString;


// MAIN //

/**
* Tests if a value is a native function.
*
* @param {*} value - value to test
* @returns {boolean} boolean indicating whether value is a native function
*
* @example
* function beep() {
*     console.log( 'boop' );
* }
*
* var bool = isNativeFunction( beep );
* // returns false
*
* bool = isNativeFunction( Date );
* // returns true
*/
function isNativeFunction( value ) {
	return (
		isFunction( value ) &&
		RE_NATIVE_FUNCTION.test( fcn2str.call( value ) )
	);
} // end FUNCTION isNativeFunction()


// EXPORTS //

module.exports = isNativeFunction;

{'fraction_non_alphanumeric': 0.1309699655342196, 'fraction_numerical': 0.0019694731659281144, 'mean_word_length': 3.7699530516431925, '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': '3405518', 'n_tokens_mistral': 642, 'n_tokens_neox': 617, 'n_words': 196}