index.js
function isLicenseHeaderPresent(currentFile) {
		if (!isFileEmpty(currentFile.contents)) {
			var currentFileUtf8 = readCurrentFile(currentFile),
				licenseFileUtf8 = readLicenseHeaderFile(),
				skipStrict = 0;

			if(currentFileUtf8[0] === '"use strict";' ) {
				skipStrict = 1;
			}

			for (var i = skipStrict; i < licenseFileUtf8.length; i++) {
				if (currentFileUtf8[i + skipStrict] !== licenseFileUtf8[i]) {
					return false;
				}
			}
		}
		return true;
	}
function isLicenseHeaderPresent(currentFile) {
		if (!isFileEmpty(currentFile.contents)) {
			var currentFileUtf8 = readCurrentFile(currentFile),
				licenseFileUtf8 = readLicenseHeaderFile(),
				skipStrict = 0;

			if(currentFileUtf8[0] === '"use strict";' ) {
				skipStrict = 1;
			}

			for (var i = skipStrict; i < licenseFileUtf8.length; i++) {
				if (currentFileUtf8[i + skipStrict] !== licenseFileUtf8[i]) {
					return false;
				}
			}
		}
		return true;
	}
function isLicenseHeaderPresent ( currentFile ) { if ( ! isFileEmpty ( currentFile . contents ) ) { var currentFileUtf8 = readCurrentFile ( currentFile ) , licenseFileUtf8 = readLicenseHeaderFile ( ) , skipStrict = 0 ; if ( currentFileUtf8 [ 0 ] === '"use strict";' ) { skipStrict = 1 ; } for ( var i = skipStrict ; i < licenseFileUtf8 . length ; i ++ ) { if ( currentFileUtf8 [ i + skipStrict ] !== licenseFileUtf8 [ i ] ) { return false ; } } } return true ; }
Check if header is present.

@param {object} currentFile - file in string[] format.

@returns {boolean} dose match.
Check if header is present .