Skip to content

Instantly share code, notes, and snippets.

Last active Aug 11, 2017
What would you like to do?
var string = "Alphabet";
function firstNonRepeatedCharacter(string) {
var string = string.toLowerCase();
for (var i = 0; i < string.length; i++) {
var c = string.charAt(i);
if (string.indexOf(c) == i && string.indexOf(c, i + 1) == -1) {
return c;
return null;
var result = firstNonRepeatedCharacter(string);
console.log( result );
SELECT, FROM Customer as c, CustomerCreditCards as cc WHERE = cc.customer_id AND cc.expirationdate BETWEEN DATE_SUB(NOW(), INTERVAL 14 DAY)
$("div a[target!='_blank"]").hide(); 

would fail, but:

$("div a[target!='_blank']").hide(); 

would work.

It would also hide option B:

	<a href="https:/" target="_top">Clickme</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment