We Recommend

The Scheme Programming Language The Scheme Programming Language
This thoroughly updated edition of The Scheme Programming Language provides an introduction to Scheme and a definitive reference for standard Scheme, presented in a clear and concise manner. Written for professionals and students with some prior programming experience, it begins by leading the programmer gently through the basics of Scheme and continues with an introduction to some of the more advanced features of the language.


Posted By

wintondeshong on 11/08/07


Tagged

textmate actionscript


Versions (?)


copyPropertiesIndexOf


Published in: ActionScript 


  1. // Returns an object with any/all properties of the supplied object that contain searchStr in their name
  2. private function copyPropertiesIndexOf(searchStr:String, obj:Object):Object
  3. {
  4. var tmpObject:Object = new Object();
  5. for (var prop in obj)
  6. if (prop.indexOf( searchStr )!=-1)
  7. tmpObject[prop] = obj[prop];
  8. return tmpObject;
  9. };

Report this snippet 

You need to login to post a comment.