value to test
boolean indicating whether value is a localhost hostname
var bool = isLocalhost( 'localhost' );
// returns true
var bool = isLocalhost( '127.0.0.1' );
// returns true
var bool = isLocalhost( '[::1]' );
// returns true
var bool = isLocalhost( 'wikipedia.org' );
// returns false
var bool = isLocalhost( 'stdlib.io' );
// returns false
var bool = isLocalhost( null );
// returns false
Tests whether a value is a localhost hostname.