MCPcopy Create free account
hub / github.com/ActiveState/code / smart_add_word

Function smart_add_word

recipes/JavaScript/578517_Music_player/recipe-578517.js:1823–1833  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

1821}
1822
1823function smart_add_word(s)
1824{
1825 var al=a_words.length;
1826 var i=0;
1827 var b_exists=false;
1828 for (i=0;i<al;i++)
1829 {
1830 if (a_words[i]==s) b_exists=true;
1831 }
1832 if (b_exists==false) a_words.push(s);
1833}
1834
1835function word_exists(s)
1836{

Callers 1

recipe-578517.jsFile · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected