sjl.js
function extractBoolFromArray(array, startOrEndBln) {
        var extractedValue = extractFromArrayAt(
            array,
            startOrEndBln ? 0 : array.length - 1,
            _Boolean,
            false
        )[0];
        return isBoolean(extractedValue) ? extractedValue : false;
    }
function extractBoolFromArray(array, startOrEndBln) {
        var extractedValue = extractFromArrayAt(
            array,
            startOrEndBln ? 0 : array.length - 1,
            _Boolean,
            false
        )[0];
        return isBoolean(extractedValue) ? extractedValue : false;
    }
Extracts a boolean from the beginning or ending of an array depending on startOrEndBln.
@note Method does not create a new array when doing extraction and alters originally passed in array.
@param array {Array}
@param startOrEndBln {Boolean}
@returns {Boolean}